KrazyKid
02-20-2003, 05:08 PM
Hello,
I am trying to use a .asp page to open a new window based on a javascript confirm --> window.open in another window.
That works...but I want to then redirect the parent .asp page to another .asp page what actually happens is the .asp is redirected causing the javascript confirm to not be processed.
Is there anyway to ensure that the response from the javascript confirm is handled by the enduser and then redirect?!??!
<% asp code here %>
<script language="javascript" type="text/javascript">
if (confirm('OpenWindow?'))
{
window.open('window');
}
else
{
dosomestuff();
}
</script>
<% Response.Redirect("another.asp") %>
Please let me know of any tips/methods!!
Thanks in advance
I am trying to use a .asp page to open a new window based on a javascript confirm --> window.open in another window.
That works...but I want to then redirect the parent .asp page to another .asp page what actually happens is the .asp is redirected causing the javascript confirm to not be processed.
Is there anyway to ensure that the response from the javascript confirm is handled by the enduser and then redirect?!??!
<% asp code here %>
<script language="javascript" type="text/javascript">
if (confirm('OpenWindow?'))
{
window.open('window');
}
else
{
dosomestuff();
}
</script>
<% Response.Redirect("another.asp") %>
Please let me know of any tips/methods!!
Thanks in advance