Handling Load Events in a Content Document : HTML Body Event : HTML : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  HTML   » [  HTML Body Event  ]   
 



Handling Load Events in a Content Document

Please note that some example is only working under IE or Firefox.


/*
Mastering JavaScript, Premium Edition
by James Jaworski 

ISBN:078212819X
Publisher Sybex CopyRight 2001
*/

<HTML>
<HEAD>
<TITLE>Handling load events in a content document</TITLE>
</HEAD>
<BODY onLoad="alert('Hello!')" onUnload="alert('Bye Bye!')">
<H1>Handling load events in a content document</H1>
<P>This document has a body and is displayed in typical fashion.</P>
</BODY>
</HTML>
           
       
Related examples in the same category
1.  Using the fireEvent() Method
2.   onBlur and onFocus Event Handlers
3.  Using the onSelectStart Event Handler
4.  Calling to Display the Alert Dialog onLoad
5.  Calling to Display the Alert Dialog Directly
6.  JavaScript Event Handlers :Loading/ Unloading a Document
7.  Using Event Bubbling with the onClick Event
8.   Running a Script from the onLoad Event Handler
9.  Using addBehavior() and removeBehavior()
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.