This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Javascript Back button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript Back button" Watch "Javascript Back button" New topic
Author

Javascript Back button

Muhammad Sarwar
Greenhorn

Joined: Jan 02, 2003
Posts: 20
Hi All,

Is there any way in javascript to detect that the back button of browser has been pressed.
Actually I want to refresh my page whenever someone press the browser back button

Thanx,


Knowlege 4 evey 1
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
There is no way to tell the difference bewteen the back button, the closing of the page, user navigating away, or the refresh button.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript Back button
 
Similar Threads
Log Out Problem
Browser Back Button
when broswer back button pressed form data is changed.
remove "Backbutton"...in the browser
how to diable browser back button