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

Thread: Help....

  1. #1
    New Coder
    Join Date
    Dec 2006
    Location
    Bahrain
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help....

    Anything wrong?
    Code:
    <script type="text/javascript">
    if(navigator.appname = Internet explorer)
    document.write("Your currently used browser is Internet explorer!")
    </script>
    ALWAYS remember to validate your code

  • #2
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    In the future, please use a more descriptive subject when posting a question. See posting guidelines.

    Since I'm lazy, I usually just test for document.all:

    Code:
     
    if (document.all && !window.opera)
    document.write("Your currently used browser is Internet explorer!")
    - George
    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
    - JavaScript Reference- JavaScript reference you can relate to.


  •  

    Posting Permissions

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