JavaScript

 

 

 



Lesson 7 Example 2: OnLoad call alert Function

The Functions are called by placing the following Event Handlers and functions in the body tag:

<Body onLoad="Hello()" onUnLoad="goodbye()";>

The code below defines the functions.

<script language="JavaScrip";>
<!--//function hello()
{alert("Welcome to Lesson 7");}
function goodbye()
{alert("Thank you for visiting. Come Back Soon!");}//-->
</script>

back button
next button

© 2002 Tracy Johnson