I'm coming from the ASP worl and have no clue to javascript. In the
following code, I'm trying to set the value for variable strPage, then use
that in the redirect statement. The page does nothing. No redirect at all.
What should the synatx be?
thanks!
<SCRIPT LANGUAGE="JavaS cript">
if Session("SoftHa rd") = "Hard"
{
strPage = "hardpage.asp?O rderNo=" & Session("OrderN o");
}
if Session("SoftHa rd") = "Soft"
{
strPage = "softpage.asp?O rderNo=" & Session("OrderN o");
}
setTimeout("top .location.href = strPage",4000);
</SCRIPT>
following code, I'm trying to set the value for variable strPage, then use
that in the redirect statement. The page does nothing. No redirect at all.
What should the synatx be?
thanks!
<SCRIPT LANGUAGE="JavaS cript">
if Session("SoftHa rd") = "Hard"
{
strPage = "hardpage.asp?O rderNo=" & Session("OrderN o");
}
if Session("SoftHa rd") = "Soft"
{
strPage = "softpage.asp?O rderNo=" & Session("OrderN o");
}
setTimeout("top .location.href = strPage",4000);
</SCRIPT>
Comment