• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

previous page

 
Kingsley Mullers
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

If I remember rightly. But you'd get a far more dependable response if you post JavaScript questions in the JavaScript forum.
 
Kingsley Mullers
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the HTML forum.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to specify the framename

parent.frameName.history.go(-1);

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic