Previous Example-|-Next Example-|-Return to Chapter Listing

Example 3.3:
Calling the Function




This example uses the function we've declared, by calling it from the following button:


This is the script we used:
<SCRIPT LANGUAGE="JAVASCRIPT"> <!-- function AlertBox(){ alert("This is the alert box" ) } document.write("This document last modified on: ") document.write(document.lastModified) //--> </SCRIPT> Then we have this button: <FORM> <INPUT TYPE="button" NAME="AlertButton" VALUE="Click here to call the function" onclick="AlertBox()"> </FORM>
Previous Example-|-Next Example-|-Return to Chapter Listing