Results 1 to 2 of 2

Thread: Help!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    22

    Unhappy 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

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    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
  •  



Click Here to Expand Forum to Full Width