Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Javascript For Getting Details Of Visitors Browser

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 19-01-2010
samualres's Avatar
Member
 
Join Date: Nov 2009
Posts: 686
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.
Reply With Quote
  #2  
Old 19-01-2010
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
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
Reply With Quote
  #3  
Old 19-01-2010
Member
 
Join Date: May 2008
Posts: 1,990
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>
Reply With Quote
  #4  
Old 19-01-2010
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
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.
Reply With Quote
  #5  
Old 19-01-2010
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
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>
Reply With Quote
  #6  
Old 19-01-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Javascript For Getting Details Of Visitors Browser"
Thread Thread Starter Forum Replies Last Post
Javascript not working in the browser and getting white screen Everleigh Technology & Internet 3 29-12-2010 05:35 PM
Javascript not working in any browser Miles Runner Software Development 5 09-03-2010 07:13 AM
Steps to enable javascript in browser Bansi_WADIA Technology & Internet 5 21-01-2010 03:59 AM
How to control browser properties with JavaScript? Cisco-s Technology & Internet 3 16-01-2010 08:39 PM
Enable or disable JavaScript in your browser jesse Tips & Tweaks 2 02-12-2008 06:09 PM


All times are GMT +5.5. The time now is 12:14 PM.