Jquery Browser Plugin

Very recently i posted an article about knowing your browser and platform and handle your code and website pages accordingly as you can style elements or write functions for specific browsers, browser versions, layouts, layout versions, and even operating systems.

I found out a jQuery plug-in for reading those information. In case you do not want to use navigator object as you are already using jQuery as your javascript library and want to be consistent, you can use this plug-in to extract browser and platform information.

 
1.  $.browser.name // The name of the browser being used
2.  $.browser.version // The version of the browser (note, as a string)
3.  $.browser.versionNumber // The version of the browser (note, as an integer)
4.  $.browser.versionX // The release of the browser (think 2x, 3x, etc)
5.  $.layout.name // The name of the layout engine being used
6.  $.os.name // The operating system being used.
 

See running example below (You should see information below according to the browser and operating system you are using):

More details at http://jquery.thewikies.com/browser/

Most Commented Posts

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)