This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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
Browser Back Button
when broswer back button pressed form data is changed.
remove "Backbutton"...in the browser
Log Out Problem
how to diable browser back button