Javascript: Global object window


– test –



  1. window.onresize = property contains an EventHandler triggered when a resize event is received.

Example:

window.onresize = function() {

alert('resize test');

}

2. window.onload = property contains an EventHandler when load event of a WindowXMLHttpRequest<img> element is received.

Example:

window.onload = function() {

alert('do something');

};