Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    runtime error - simple javascript detection and redirect

    I have a user who is getting a javascript error. Here is the script I'm running to detect whether or not the user has javascript turned on, then to redirect as necessary.



    <script language=javascript1.1>
    <!-- Hide Script
    window.location="pdwebmain.htm")
    //End Hide Script-->
    </script>

    I think I know what the problem is, but am not sure how to fix it. There is a ")" following the pdwebmain.htm reference. Shouldn't there be a preceding "(" somewhere in the script???? If so, where should it be located within the script.

    However, the error message that appears is:
    Error: expected ';'

    Can anyone tell me what is wrong with this script?

    Any help appreciated.

    Thanks!
    Dave

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    The bracket ) should not be there just delete it and all should be well

  • #3
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for the quick response. I will remove the ")" and see how that works.

    Thanks again folks!
    Dave


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •