Hi I wish to have a confirmation box come up before subiting content of an HTML form.
ie. if Yes then submit.
ie. if False then don't submit.
Please can some one help?
regards
The Form:
<form name="form1" method="post" onSubmit="confirm_entry()" >
<input type="hidden" name="Email_Importance" value="<%= Email_Importance %>">
<input type="hidden" name="html_Email_Body" value="<%=Server.HTMLEncode(html_Email_Body)%>">
<input type="hidden" name="Email_Body" value="<%=Email_Body%>">
The Javascript:
<script language="JavaScript">
<!--
winName = window.open(email,"send_email"
function confirm_entry()
{
input_box=confirm("Are You Sure? Email will be sent to all customers!"
if (input_box==true)
{
email('about:blank');
f = document.forms[0];
f.target = winName;
f.action = 'email_control.asp?action=send';
f.submit();
}
}
-->
</script>
Angus
ie. if Yes then submit.
ie. if False then don't submit.
Please can some one help?
regards
The Form:
<form name="form1" method="post" onSubmit="confirm_entry()" >
<input type="hidden" name="Email_Importance" value="<%= Email_Importance %>">
<input type="hidden" name="html_Email_Body" value="<%=Server.HTMLEncode(html_Email_Body)%>">
<input type="hidden" name="Email_Body" value="<%=Email_Body%>">
The Javascript:
<script language="JavaScript">
<!--
winName = window.open(email,"send_email"
function confirm_entry()
{
input_box=confirm("Are You Sure? Email will be sent to all customers!"
if (input_box==true)
{
email('about:blank');
f = document.forms[0];
f.target = winName;
f.action = 'email_control.asp?action=send';
f.submit();
}
}
-->
</script>
Angus