In this tutorial we'll show you JavaScript function for Firefox Browser detection.
if (jQuery.browser.mozilla) { // do sth.} // Select Firefox 1.5.x to 2.xif (jQuery.browser.mozilla && jQuery.browser.version.substr(0, 3) == '1.8') { // do sth.} // Select Firefox under 3.xif (jQuery.browser.mozilla && jQuery.browser.version < '1.9') { // do sth.} // Select Firefox 3.0.x and aboveif (jQuery.browser.mozilla && jQuery.browser.version.substr(0, 3) == '1.9') { // do sth.} // Select just Firefox 2.0.xif (jQuery.browser.mozilla && jQuery.browser.version == '1.8.1') { // do sth.} // Select just Firefox 3.0.xif (jQuery.browser.mozilla && jQuery.browser.version == '1.9') { // do sth.} // Select just Firefox 3.5.xif (jQuery.browser.mozilla && jQuery.browser.version == '1.9.1') { // do sth.} // Select just Firefox 3.6.xif (jQuery.browser.mozilla && jQuery.browser.version == '1.9.2') { // do sth.} // Select just Firefox 7.xif (jQuery.browser.mozilla && jQuery.browser.version.substr(0, 1) == '7') { // do sth.}
No comments:
Post a Comment