|
-
Mar 27th, 2003, 02:53 AM
#1
Thread Starter
Junior Member
Help!
Hi there everyone. I'm new to javascript and I can't get this code working.
Code:
if (bver >= 5.5 ) {
window.location.href = 'main.htm' ;
}
Its meant to redirect to the "main.htm" page if bVer is more than 5.5 but I keep getting errors, thanx all :P
-
Mar 27th, 2003, 06:25 PM
#2
Fanatic Member
Try this instead:
Code:
if(bVer >= 5.5){
window.location = "main.htm";
}
And remember that JavaScript is case sensitive so if bVer has a capital V be sure that's how you type it. Because...
bVer
-and-
bver
Are two seperate variables.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|