Author
previous page
Kingsley Mullers
Ranch Hand
Joined: Jan 14, 2005
Posts: 48
posted May 18, 2005 10:02:00
0
Hi folks, i got a back button created on my JSP now trying to write a javascript to go back to the previous page, i don't remember quite well but its something gotta do with history dot(.) something can anybody help me with the syntax to use on this button. thanks a lot
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
If I remember rightly. But you'd get a far more dependable response if you post JavaScript questions in the JavaScript forum.
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Kingsley Mullers
Ranch Hand
Joined: Jan 14, 2005
Posts: 48
posted May 18, 2005 10:30:00
0
thanks Paul, i've tried it and no luck... the button is on another frame, does it make a differnt. my function reads... function BackButton () { history.go(-1) } do i need to specify the form where it needs to go to? maybe something like frmDetails.history.go(-1) thanks
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56179
Moved to the HTML forum.
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About Bear ]
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
You need to specify the framename parent.frameName.history.go(-1); Eric
subject: previous page