TASK:
Fix something or do special instructions according to browser type.
SOLUTION:
Use the flags of $.browser:
Also, we can detect version of browser using $.browser.version
Jquery.browser and $.browser are synonymous.
EXAMPLE:
Fix something or do special instructions according to browser type.
SOLUTION:
Use the flags of $.browser:
- $.browser.webkit
- $.browser.safari (deprecated)
- $.browser.opera
- $.browser.msie
- $.browser.mozilla
Also, we can detect version of browser using $.browser.version
Jquery.browser and $.browser are synonymous.
EXAMPLE:
No comments:
Post a Comment