Results 1 to 6 of 6

Thread: Javascript For Getting Details Of Visitors Browser

  1. #1
    Join Date
    Nov 2009
    Posts
    678

    Javascript For Getting Details Of Visitors Browser

    Hello, I want to get the java script which when used in your web page provide you the details about the web browser which it is using. Can anyone is having idea about it. If anyone is having such script or something logic then please reply with that to me.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Javascript For Getting Details Of Visitors Browser

    I think you may need to use the books below to get the solution for your problem:
    1. Official Netscape Visual JavaScript
    2. JavaScript Programmer's Annotated Archives
    3. JavaScript for Dummies, 2nd Ed.
    4. Official Netscape JavaScript 1.2 Programmer’s Reference
    5. Learn Advanced JavaScript Programming
    6. Designing with JavaScript: A Guide for the Rest of Us

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: Javascript For Getting Details Of Visitors Browser

    If you are using the below script then you will get the Browser Name and Browser version from the script below:
    Code:
    <html>
    <body>
    <script type="text/javascript">
    var br = navigator.appName;
    var brversion = navigator.appVersion;
    var versionofbrowser = parseFloat(brversion);
    document.write("Browser name: "+ br);
    document.write("---------------");
    document.write("Browser version: "+ brversion);
    </script>
    </body>
    </html>

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Javascript For Getting Details Of Visitors Browser

    Hello, I am just learning JavaScript and think that you need to make use of different online tutorials for getting this problem solved. If you want to get solution about the the details of visitors browser then you must need to visit the websites which provides you script and all. Or you can make use of different books for getting the solution.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: Javascript For Getting Details Of Visitors Browser

    I have got the solution for your script requirement. You just need to use the script below and it will provide you more details about the browser of user:

    Code:
    <html>
    <body>
    
    <script type="text/javascript">
    document.write("<p>Name of the Browser: ");
    document.write(navigator.appName + "</p>");
    
    document.write("<p>Version of the Browser: ");
    document.write(navigator.appVersion + "</p>");
    
    document.write("<p>Code used in the Browser: ");
    document.write(navigator.appCodeName + "</p>");
    
    document.write("<p>Platform which is used by the browser: ");
    document.write(navigator.platform + "</p>");
    
    document.write("<p>Cookies enabled or not: ");
    document.write(navigator.cookieEnabled + "</p>");
    
    </script>
    </body>
    </html>

  6. #6
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Javascript For Getting Details Of Visitors Browser

    If you want to write javascript for getting details of Visitors Browser then you just need to use the properties of Navigator by providing dot in front of it. Navigator provides you following properties:
    • appCodeName - For code name of browser.
    • appName - Browser name
    • appVersion - Browser Version
    • cookieEnabled - cookie enabled or not
    • language - Default language of Browser

Similar Threads

  1. Javascript not working in the browser and getting white screen
    By Everleigh in forum Technology & Internet
    Replies: 3
    Last Post: 29-12-2010, 05:35 PM
  2. Javascript not working in any browser
    By Miles Runner in forum Software Development
    Replies: 5
    Last Post: 09-03-2010, 07:13 AM
  3. Steps to enable javascript in browser
    By Bansi_WADIA in forum Technology & Internet
    Replies: 5
    Last Post: 21-01-2010, 03:59 AM
  4. How to control browser properties with JavaScript?
    By Cisco-s in forum Technology & Internet
    Replies: 3
    Last Post: 16-01-2010, 08:39 PM
  5. Enable or disable JavaScript in your browser
    By jesse in forum Tips & Tweaks
    Replies: 2
    Last Post: 02-12-2008, 06:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,726,956,324.10204 seconds with 17 queries