T
tshad
Is there a way to do a Javascript confirm box when an aspx page initially
loads (not postback)?
I can make the confirm box come up by doing the following:
***************************************************
<script type="text/javascript">
function CheckForProfile() {
confirm("Do you want to Enter a Profile?");
}
</script>
Sub Page_load()
if not isPostBack then
myBody.Attributes.Add("onload","CheckForProfile();")
end if
end sub
<body id="myBody" runat="server">
**************************************************
But I want to have the user redirect to "/applicant/passport.aspx" if they
push the OK button and just continue on if they press the cancel.
Is there a way to do this?
The confirm window comes up fine but how to I get it to jump to another
page?
Thanks,
Tom
loads (not postback)?
I can make the confirm box come up by doing the following:
***************************************************
<script type="text/javascript">
function CheckForProfile() {
confirm("Do you want to Enter a Profile?");
}
</script>
Sub Page_load()
if not isPostBack then
myBody.Attributes.Add("onload","CheckForProfile();")
end if
end sub
<body id="myBody" runat="server">
**************************************************
But I want to have the user redirect to "/applicant/passport.aspx" if they
push the OK button and just continue on if they press the cancel.
Is there a way to do this?
The confirm window comes up fine but how to I get it to jump to another
page?
Thanks,
Tom