PDA

View Full Version : Execute Function On Page Reload



kermit_cof
01-27-2006, 07:38 AM
Hi

I need a script that will execute a function when the page is reloaded (ie. when the user presses F5 or a document.location.reload() is called).

I've tried body.onload which in normal circumstances works but unfortunately our database software that runs the HTMLs (Magic) doesn't really support this feature.

Any help will be greatly appreciated!

Kind Regards

Kermit

TwoD
01-28-2006, 02:50 AM
Eh, the server has nothing to do with how the JavaScript is executed, that is all up to the browser.
The onload even should work, do you have an example of it not working?