Current location: Hot Scripts Forums » General Web Coding » JavaScript » Back Link


Back Link

Reply
  #1 (permalink)  
Old 07-13-04, 07:59 PM
rshelton rshelton is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Question Back Link

Hello again....

Here is my next problem....When the user presses the back link on my web page, I would like all the information to previously enter to remain on the page once the page loads...

Can this be done without actually accessing the Database where the info is stored..?

I've noticed that when the back button on the browser is pressed, the info is still there....that is what I am looking for.

Thanks in advance...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-13-04, 08:19 PM
rshelton rshelton is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Question

I did a search on Planetsourcecode.com and this is what I found--->

<INPUT type="image" src="<Url of back button image" onclick="window.history.back()">

This has the correct concept...I want to be able to use a hyperlink instead...

Still in need of some help...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-13-04, 08:35 PM
rshelton rshelton is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Ok..I researched a little further and found the following--->

<A HREF="javascript:history.go(-1)"> [Go Back]</A>

This work also, but it doesn't retain my data.....

Still looking...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 07-14-04, 12:19 AM
kvnband kvnband is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 242
Thanks: 0
Thanked 0 Times in 0 Posts
I know nothing about javascript, but have you tried

Code:
<a href="javascript:window.history.back()">Click To Go Back</a>
To me, it seems like this would be the correct way

Let me know
Kevin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 07-14-04, 05:25 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
There is no guarantee that all entered info will still be there when going back to a site unless you save it in a cookie or database. A cookie would be easier to add but try waht kvnband posted, it should work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to link to insert pages samkry ASP 0 06-14-04 12:14 AM
Image Swap on a text link Roll Over Jaali JavaScript 1 04-15-04 10:43 AM
$ in http:// link via email? GG Dart PHP 2 01-15-04 12:23 PM
Passing a table or variable through a link? chinablack1480 PHP 1 12-07-03 04:55 AM
Different type of link counter mdhall Script Requests 2 10-10-03 02:19 PM


All times are GMT -5. The time now is 08:32 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.