Two Simple Scripts

This button calls the alert() built-in function:


This is the script we used:

<SCRIPT>

document.write("This document last modified on: ");
document.
write(document.lastModified);

</SCRIPT>

<p>This button calls the alert() built-in function:</p>

<FORM>
     <INPUT
TYPE="button" NAME="AlertButton" VALUE="Click here"
      
onClick="alert('You just clicked the button')">
</FORM>