Basic HTML version of Foils prepared 26 March 99

Foil 10 onUnload onLoad Events

From Architecture and Implementation of JavaScript Shared Browser Tango Group Seminar -- 26 March 99. by Geoffrey C. Fox


With <body onload="signifyload()" > signifyload is called when page is fully loaded and DOM fully constructed
  • Seemingly can NOT reliably capture onload event as needs to be reset for each page
  • Instead for general pages use if(WW_isdefined(document.forms)) etc.
  • Note we can always detect unload of previous page ....
  • WebWisdom pages all have an onload event handler which inter alia registers with JSSB
One can either
  • a) set onunload handler of general pages after they are loaded and make this handler signify
  • b) set framewindow.WW_dynamicvariable = 1 (say) and then page is unloaded after one finds this variable undefined



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Fri Mar 26 1999