YouTip LogoYouTip

Misc Browser

# jQuery.browser Property [![Image 4: jQuery Misc Methods](#)jQuery Misc Methods](#) ## Example Display browser information: $(function () { $.each( $.browser, function( i, val ) { $( "
" + i + " : " + val + "" ) .appendTo( document.body ); }); }) [Try it Β»](#) * * * ## Definition and Usage The $.browser property was removed in jQuery 1.9. It was used to return information about the browser currently in use. It is not recommended to use this property for browser detection, as it determines browser information based on the navigator.userAgent property, so its identification may not be accurate. * * * ## Syntax _$_.browser | Parameter | Description | | :--- | :--- | | _webkit_ | Boolean type indicating if the browser is WebKit-based. | | _safari_ | Boolean type indicating if the browser is Apple Safari. | | _opera_ | Boolean type indicating if the browser is Opera. | | _msie_ | Boolean type indicating if the browser is Microsoft IE. | | _mozilla_ | Boolean type indicating if the browser is Mozilla Firefox. | | _chrome_ | Boolean type indicating if the browser is Google Chrome. | | _version_ | String type containing the version number of the current browser, e.g., "6.0", "7.0". | * * * ![Image 5: Example](#) ## More Examples (#) Indicates that the current browser is IE. (#) Indicates that the current browser is WebKit-based. (#) Returns the version number of the current browser. (#) Returns the version number of the IE browser. * * jQuery Misc Methods](#)
← Misc_EachJava Mysql Connect β†’