This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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
 
Consider Paul's rocket mass heater.
 
subject: Javascript Back button
 
Similar Threads
when broswer back button pressed form data is changed.
how to diable browser back button
remove "Backbutton"...in the browser
Browser Back Button
Log Out Problem