Yes/No Confirmation
<html> <head> <title>Untitled Normal Page</title> <SCRIPT LANGUAGE="JavaScript"> function confirmAction() { return confirm("Do you really want this subscription?") } </SCRIPT> </head> <body> <h2><em>JavaScript Chronicles -- Free Subscription Form</em></h2> <form action="mailto:subscribe@website.com" method="POST" name="SubscribeForm" onSubmit="return confirmAction()"> <ol> <li>What other magazines do you currently subscribe to? <pre><input type=checkbox name="C1-SKU01" value="SKU01">PC Week <input type=checkbox name="C1-SKU04" value="SKU04">DBMS <input type=checkbox name="C1-SKU07" value="SKU07">Wired <input type=checkbox name="C1-SKU10" value="SKU10">Yahoo <input type=checkbox name="C1-SKU02" value="SKU02">InfoWorld </pre> </li> <li>Please enter the reason you would like to subscribe to<em>JavaScript:</em><br> <br> <textarea name="Comments" rows=6 cols=46></textarea></li> </ol> <p> <input type=submit name="Submit" value="Submit"> </form> </body> </html>