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

    Browser conditions

    How can I make conditions where if it is a Netscape brwser it gives me just a text and if it is a IE browser it gives me a link. I have this link that I want to show in my IE browsers but just show a text if in Netscape browser.

    The html for for IE:
    <a href="mypage.html">mypage Link</a>

    HTML for netscape:
    <p>mypage Link is only available in IE</p>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The most significant information about the browser you'll find in navigator.userAgent. Alternatively, test for certain objects that are proprietary to specific browsers or do indicate that a technology like w3c DOM is supported.


  •  

    Posting Permissions

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