home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd2.bin / nav2004 / download / NAV / External / NORTON / APP / NAVComUI.dll / HTML / MEMORYSCANALERT.JS < prev    next >
Text File  |  2003-08-17  |  503b  |  26 lines

  1. var MainFrame = window.parent;
  2. var iTimerID;
  3. var bTimerRunning = false;
  4. var TIMEOUT = 20000;
  5.  
  6. function OnLoad()
  7. {
  8.     // Setup a timer to automatically close the window after 20 secs
  9.     OkButton.focus();
  10.     iTimerID = setInterval("OnOkButton()", TIMEOUT);
  11.     bTimerRunning = true;
  12. }
  13.  
  14. function OnOkButton()
  15. {
  16.     // If the timer is running
  17.     if (bTimerRunning == true)
  18.     {
  19.         // cancel the timer
  20.         clearInterval(iTimerID);
  21.     }
  22.     
  23.     // Close the window
  24.     MainFrame.navigate("res://closeme.xyz");    
  25. }
  26.