aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes previous page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "previous page" Watch "previous page" New topic
Author

previous page

Kingsley Mullers
Ranch Hand

Joined: Jan 14, 2005
Posts: 48
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
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: 61764
    
  67

Moved to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You need to specify the framename

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

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: previous page