Back to Index

Close Command in Submit Button

The highlighted script can be placed in the button script to close the Pop-Up window after the visitor fills out the form.
<p align="center"><b><font size="4">Weekly News Letter:</font></b></p>
<form method="POST" action="">
<p align="center">
<input type="text" name="T1" size="20" value="Email Address"><br>
<input type="submit" value="Submit" name="B1" onClick="window.close(self)"><input type="reset" value="Reset" name="B2"></p>


Copyright 2003