Call your function in body onLoad event : Function Call : Function JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Function » Function Call »

 

Call your function in body onLoad event

















<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
function yourMessage()
{
    alert("Your first function!");
}
//  -->
</script>
</head>
<body onLoad="yourMessage()">

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Function
» Function Call