CoolBook.Info : The Learning of Website Development

PHP, XHTML, CSS, JavaScript, WP, …

onLoad  and  onunLoad

The onLoad event occurs immediately after a page or and image is loaded.

syntax    onLoad=”JavaScriptCode”

Support by the folowing HTML tags:  <body>,  <img>
Support by the folowing JavaScript object :  body,  image

The onunLoad event occurs when a user exits a page.

syntyax    onunload=”JavaScriptCode”

Support by the folowing HTML tags:  <body>,  <frameset>
Support by the folowing JavaScript object :  window

JavaScript

Sponsors