How do I detect what browser is being used?

Answers were Sorted based on User's Feedback



How do I detect what browser is being used?..

Answer / vel

BY using javascript, u can get browser details.

window.navigator.userAgent will give browser details.

Is This Answer Correct ?    2 Yes 0 No

How do I detect what browser is being used?..

Answer / guest

Many browsers identify themselves when they request a
document. A CGI script will have this information available
in the HTTP_USER_AGENT environment variable, and it can use
that to send out a version of the document which is
optimized for that browser.

Keep in mind not all browsers identify themselves correctly.
Microsoft Internet Explorer, for example, claims to be
"Mozilla 1.2" to get at Netscape enhanced documents.

And of course, if a cache proxy keeps the Netscape enhanced
document, someone with an other browser will also get this
document if he goes through the cache.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

What is the xhtml?

0 Answers  


What are seo tags?

0 Answers  


What is description list?

0 Answers  


Why is tag used?

0 Answers  


if i have a parent sequence with the property set- exit on success, n the try sequence block set to exit on success, n the catch sequence block too set to failure, what is the result?

0 Answers   TCS,






Can elements be overlapped in xhtml or not?

0 Answers  


What are the two components of html attributes?

0 Answers  


What is use label?

0 Answers  


What are the different types of storage in html5? Explain

0 Answers  


What is scss in html?

0 Answers  


What is the difference between innertext and textcontent?

0 Answers  


What are the basic tags of html?

0 Answers  


Categories