SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Oct 15, 2001, 23:38 #1
- Join Date
- May 2001
- Location
- U.S.A
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Go Back history button on top frame that affects main frame?
Hello, Im trying to make a back button that reloads the previous page the user was at.
The back button will be on a small top frame and the page that needs to be controlled will be in the main frame.
The top frame is just a navigation system, and all pages will be loaded in the main frame.
Im trying to use this code
Code:<FORM> <INPUT TYPE="button" NAME="back" VALUE="BACK" onClick="history.go(-1)"> </FORM>
And what about a foreward button?
Thanks for any help.
HardRon
-
Oct 20, 2001, 17:06 #2
- Join Date
- Jun 2001
- Location
- New Zealand
- Posts
- 74
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Just came across this - maybe it can help
http://www.crowderassoc.com/javascri...tonframes.html
and/or
http://developer.irt.org/script/frame.htm<help>StIcKs</help>
-
Oct 21, 2001, 04:35 #3
Yep, the first link in previous post will answer your question. You have to keep in mind that each frame or window has his own history. So if you use history.go(-1) it only applies to the current frame. You'll need to point to your main frame and use the go method of that history object.
Regards
Bookmarks