monkeymagic2222
Technical User
Hi,
I have an asp web page with one form on it but two Submit buttons (each posting the data to a different page. The first Submit button has the following JavaScript code:
<input type="submit" name="submit1" value="Submit" onClick="document.theform.action='ordernum_update_code.asp';">
This works perfectly as is and I do need to keep the onClick code in it. What I would like to do is bring up a new box that asks if the user is sure they want to continue and if they press yes, the above action will be carried out and if they press no, nothing will happen?
Thanks in advance.
I have an asp web page with one form on it but two Submit buttons (each posting the data to a different page. The first Submit button has the following JavaScript code:
<input type="submit" name="submit1" value="Submit" onClick="document.theform.action='ordernum_update_code.asp';">
This works perfectly as is and I do need to keep the onClick code in it. What I would like to do is bring up a new box that asks if the user is sure they want to continue and if they press yes, the above action will be carried out and if they press no, nothing will happen?
Thanks in advance.