<body> <form action="thankyou.asp" method="post" onSubmit="return CheckInputFields()" name="form1"> <img src="images/submit.gif" alt="Submit Information" name="submitinfo" onClick="return CheckInputFields()">
This is what I tried to do to make the Thankyou page open in a smaller window:
<head> function open_win() { window.open("http://www.dundeecandy.com/thankyou.asp","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400") } </head> <body> <img src="images/submit.gif" alt="Submit Information" name="submitinfo" onClick="return CheckInputFields(), open_win()">
I think the problem is where I put "open_win()". I don't know where to put that so I decided the put a comma after CheckInputFields() thinking that the onClick could do both things.
Does anyone know of a code that could take care of both processes: submitting information to a company and displaying a small window browser confirming the info was received? Thanks!
Edited by promoter, 13 September 2006 - 08:53 AM.