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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    362
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Writing for Netscape 7.1

    I am getting Netscape 7.x where I think it is Netscape 7.1

    How can I write conditions to this browser?


    Here is an example that works with Netscape 7.0:
    Code:
    if(navigator.appName.toLowerCase().indexOf("netscape") > -1 && navigator.vendorSub.indexOf("7.") > -1)
    Can I use the same with Netscape 7.1??

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That condition would still work ok for later versions of Netscape 7 (but there won't be any later versions, it's a dead browser now and there'll be no further versions).

    The construct you're using though begs the question of why you're doing that kind of browser sniff, that's not a good way to determine which code your web page should use because the last Netscape browser was based on the Gecko rendering engine and there are more (and still available) browsers using that engine than just the now defunct Netscape browser.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Posts
    362
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If that is the case what is the best way to check for Netscape 7.1?

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The best way is not to.

    But it depends on what you're doing and why you need to - if you're scripting, then object or feature detection are probably more appropriate; if you're writing CSS then maybe you want a way of applying something only to mozilla browsers (including netscape 7)

    So can you expand on what your particular requirements are?
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


  •  

    Posting Permissions

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