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

Example 2.10:
Information Boxes in Forms



Click on the check box to see a message box appear.
Sign Me Up!



This is the script we used. First, in the HEAD, we put this: <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- function AlertBox1(){ alert("Remember, if you sign up, we plan to stuff both your e-mail box and your snail-mail box with junk mail!" ) } //--> </SCRIPT> </HEAD> Next, in the body of the Web page we created a form, with a check box: <FORM> <INPUT TYPE="CHECKBOX" NAME="check1" onclick=AlertBox1()> Sign Me Up! </FORM>
Previous Example-|-Next Example-|-Return to Chapter Listing