Javascript Detect Browser

Javascript Detect Browser type using Javascript Browser Object navigator:

Javascript Browser Detect Code:

    

Note: ignore the part after the </script> in the code above. The javascript code is executing when it shouldn’t be. Sorry, will try and fix this in the future.

Javascript Browser Object navigator:Internet Explorer 7.0 Output

Javascript appName: Microsoft Internet Explorer
Javascript userAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM 8; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C)

Javascript Browser Object navigator:Internet Explorer 8.0 Output

Javascript appName: Microsoft Internet Explorer
Javascript userAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM 8; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C)

Javascript Browser Object navigator:Firefox 3.6.8 Output

Javascript appName: Netscape
Javascript user: AgentMozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C)

Javascript Browser Object navigator:Google Chrome 8.0.x Output

Javascript appName: Netscape
Javascript user: AgentMozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10

Javascript Browser Object navigator:Opera 10.6.3 Output

Javascript appName: Opera
Javascript user: AgentOpera/9.80 (Windows NT 6.0; U; en) Presto/2.6.30 Version/10.63

Javascript Browser Object navigator:Safari 5.0.2 Output

Javascript appName: Netscape
Javascript user: AgentMozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Share

You must be logged in to post a comment.