How do I detect what browser is being used?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are two types of html tags?

447


Is php a dynamic language?

459


Explain formmethod attribute of html5?

467


what is xhtml? Why is xhtml needed?

482


What is a tag in english?

472






How do you identify rows and columns?

446


How to use output element? Give an example.

455


hi, What will be the connection string coding while developing one web page and the back end of HTML web page is Open Office Base (database). Also what will be insert query if we want to add value of field in a table, field is present on HTMl page. Thx in advance

1515


Is xhtml a programming language?

451


I'm trying to `include' a html document in another document...is there a way to do this?

496


How we can insert copy right on browser page?

509


What are deprecated tags?

488


How do you use meta in html?

453


What is the tag for making a comment?

470


What is multilevel list in ms word?

447