We had a developed add a pop up on our site, and I am trying to get it to close once submit is pressed... I have searched around and tried many things but nothing seems to work. I am not too familiar with JavaScript was wondering if anyone has any suggestions...
below is the main part of the code.
Much appreciated!
below is the main part of the code.
Much appreciated!
Code:
<form action="/inc/usda-hardiness-zones.htm" method="post">
<input name="hitit" type="hidden" value="1" />
<tr>
<td colspan="4" align="right"><a href="javascript:MM_showHideLayers('usdazone','','hide');" onclick="document.getElementById('usdazone').style.zIndex = '-1';" class="clickclose">Click Here to Close</a><br /><br /></td>
... blah blah blah ...
<input name="zipcode" type="text" value="<? if( isset( $zip ) ) { echo $zip; } ?>" size="5" maxlength="5" class="usdainput" />
<input type="submit" value=" Get My USDA Zone! " onclick="javascript:submitForm(); javascript:self.close(); return false;" class="clickclose" />
Comment