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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    browser redirection

    I am using the following script on my webpage. I would like to incorporate Netscape into this script. The result would be that if a user is using Netscape 4 that the page will automatically redirect the user to the page that is compatible with Netscape 4. With all of the differences between Netscape 4 stylesheets and Netscape 6 stylesheets I thought it would be easier to create two separate pages depending on what browser the user is
    using. Can anyone help????? Thanks!!!


    <script language="JavaScript">
    <!--
    var userAgent = navigator.userAgent;
    var MSIEIndex = userAgent.indexOf("MSIE");
    if (userAgent.indexOf("Win") == -1 ||
    userAgent.indexOf("MSIE") == -1 ||
    userAgent.substring((MSIEIndex + 5),(MSIEIndex + 6)) < 5)
    window.location.replace("index_ns.htm");
    //-->
    </script>

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if (document.layers) {
    window.location="netscape4page.html" }

    redhead


  •  

    Posting Permissions

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