Results 1 to 2 of 2

Thread: Execute Function On Page Reload

  1. #1
    Join Date
    Jun 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Execute Function On Page Reload

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Sweden
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •