PDA

View Full Version : Back button problem


schmatt
20.06.2001, 14:11
Does anyone know how to trigger an event on a page that has been loaded by hitting the back button (or a javascript back)? This does not trigger the body's onload event.

jc
21.06.2001, 15:44
sorry that kind of event dosent exist but what you can do is that:

will only work if you know what the name of the page the user will press the back button

onload: check if document.referrer == "thepage.html"