Hi there everyone. I'm new to javascript and I can't get this code working.
Its meant to redirect to the "main.htm" page if bVer is more than 5.5 but I keep getting errors, thanx all :PCode:
if (bver >= 5.5 ) {
window.location.href = 'main.htm' ;
}
Printable View
Hi there everyone. I'm new to javascript and I can't get this code working.
Its meant to redirect to the "main.htm" page if bVer is more than 5.5 but I keep getting errors, thanx all :PCode:
if (bver >= 5.5 ) {
window.location.href = 'main.htm' ;
}
Try this instead:
And remember that JavaScript is case sensitive so if bVer has a capital V be sure that's how you type it. Because...Code:if(bVer >= 5.5){
window.location = "main.htm";
}
bVer
-and-
bver
Are two seperate variables.