N
New Front Pager
I am trying to use a switch structure to jump to different pages on my web
site. I have tried the following code segment. Case 2 works fine, but case 3
presents a blank screen. Do I have something wrong in the syntax?
function gotoPage(varItem)
{
switch(varItem)
{
case 0:
window.parent.self.status="Goes Nowhere";
break;
case 1:
window.parent.self.status="Goes Nowhere";
break;
case 2:
window.location="http://www.microsoft.com";
break;
case 3:
window.location="Test button.htm";
break;
}
}
site. I have tried the following code segment. Case 2 works fine, but case 3
presents a blank screen. Do I have something wrong in the syntax?
function gotoPage(varItem)
{
switch(varItem)
{
case 0:
window.parent.self.status="Goes Nowhere";
break;
case 1:
window.parent.self.status="Goes Nowhere";
break;
case 2:
window.location="http://www.microsoft.com";
break;
case 3:
window.location="Test button.htm";
break;
}
}