View Single Post
  #7 (permalink)  
Old July 19th, 2005, 09:18 PM
IronStar IronStar is offline
Authorized User
Join Date: Feb 2005
Location: Smithtown, NY, USA.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to IronStar

I am using Firefox as a browser. As a rule I try to stay as browser independent as possible.

I am experimenting with the captureEvents method as a way to override the default beahvior for the onUnLoad event:

      <script language="JavaScript1.2">
         var changed = false

         // override the document.unLoad event handler

         // Register the event handlers here:
         window.onUnLoad = handleUnload;

         // function to handle the unLoad
         function handleUnLoad
            alert("The page has unloaded.");

         // Function to set the changed flag to T
         function dataChanged()
            changed = true

I am having some trouble getting it to work properly in IE and Firefox. Does anyone have any experience with this?
Reply With Quote