[an error occurred while processing this directive]
Upon loading this page, a window appeared with a welcome message in it. The window stayed for 5 seconds, then closed. If you want to see it again, click RELOAD
The onLoad event is placed in the <BODY> tag, and it is used to trigger events automatically upon loading the page. You can use the onLoad to display a welcome message, place the focus in a particular textbox, execute a special effect, o r prompt for a password. The <BODY> tag of this page looks like this:
<BODY bgcolor="white" onLoad="MsgBox()"> |
MsgBox() is a function in the <SCRIPT> area which opens a window, then closes it after 5 seconds. We will discuss the setTimeout() method used to close the window automatically in more detail later.
How about onUnload events? |
Show me Automatic Timers |