Close Form


To close a form in a popup window once form is submitted:

<form method="post" action="http://www.somewhere.com/cgi-bin/xxxxxx.pl" onSubmit="setTimeout('window.close()',2000)">

The setTimeout variable is set to 2 seconds to give the form a chance to be submitted before the window is closed.

Free JavaScripts provided
by Winfolinx.com


Back