The code below (probably primative and inefficient) opens a pop-up box, shows brief text and two buttons. One button is supposed to close the box and redirect the viewer to another page on the website. The other button simply closes the box.
As written, when the "download" button is pressed, the redirected page comes up in the box. The close button works correctly.
Would very much appreciate a solution to close and redirect. Also, suggestions for more efficient code for the entire box are welcome.
Thanks - Jeff
<TABLE WIDTH="400" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR><TD ALIGN="CENTER"><FONT FACE="Arial,Helvetica" color="WHITE" size=+1><STRONG>Be sure to download our Internet Coupon for instant savings when you place your order with us.<BR><BR>This is our way of thanking you for visiting our website.</STRONG></CENTER></TD></TR>
</TABLE>
<BR>
<TABLE WIDTH="400" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR ALIGN="CENTER">
<TD><FORM METHOD="GET" ACTION="javascript:window.location='<INPUT TYPE="SUBMIT" NAME="BUTTON1" VALUE="Download">
</FORM></TD>
<TD><FORM METHOD="GET" ACTION="javascript:window.close()">
<INPUT TYPE="SUBMIT" NAME="BUTTON2" VALUE="No Thanks">
</FORM></TD>
</TR></TABLE>
As written, when the "download" button is pressed, the redirected page comes up in the box. The close button works correctly.
Would very much appreciate a solution to close and redirect. Also, suggestions for more efficient code for the entire box are welcome.
Thanks - Jeff
<TABLE WIDTH="400" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR><TD ALIGN="CENTER"><FONT FACE="Arial,Helvetica" color="WHITE" size=+1><STRONG>Be sure to download our Internet Coupon for instant savings when you place your order with us.<BR><BR>This is our way of thanking you for visiting our website.</STRONG></CENTER></TD></TR>
</TABLE>
<BR>
<TABLE WIDTH="400" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR ALIGN="CENTER">
<TD><FORM METHOD="GET" ACTION="javascript:window.location='<INPUT TYPE="SUBMIT" NAME="BUTTON1" VALUE="Download">
</FORM></TD>
<TD><FORM METHOD="GET" ACTION="javascript:window.close()">
<INPUT TYPE="SUBMIT" NAME="BUTTON2" VALUE="No Thanks">
</FORM></TD>
</TR></TABLE>