Friday, 28 December 2012 13:56

How to get browser information by javascript

Written by 
Rate this item
(0 votes)

the following javascript codes will help you find
out the browser details by some javascript functions

sometime we need to know the browser details for
programming help purposes and for gathering browser
datails.with the help of javascript we can easily
get those data from client side codes.

the following javascript navigator variables are used
for getting details of browsers -

navigator.appName - used to return the browser name

navigator.appVersion - used to get version details

navigator.appCodeName - returns browser code

navigator.platform - give platform details

navigator.cookieEnabled - gives the cookies are
on of off in the browser

as a example we can embed these codes in html as
follows -

<script type="text/javascript">
document.write("Name of Browser: ")

If you have questions about this post or any topics, post your questions in
discussions/forum in this website, you will get your answer

Read 3512 times Last modified on Monday, 19 August 2013 14:39
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.

Latest discussions

  • No posts to display.