File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "previous page" Watch "previous page" New topic

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

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 ()

do i need to specify the form where it needs to go to?
maybe something like frmDetails.history.go(-1)

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

Moved to the HTML forum.

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

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


I agree. Here's the link:
subject: previous page
It's not a secret anymore!