Home >Web Front-end >JS Tutorial >Method to determine various browser versions through js regularity combined with JQ1.9_jquery
is as follows:
$.browser.mozilla = /firefox/.test(navigator.userAgent.toLowerCase());
$.browser. webkit = /webkit/.test(navigator.userAgent.toLowerCase());
$.browser.opera = /opera/.test(navigator.userAgent.toLowerCase());
$.browser.msie = /msie/.test(navigator.userAgent.toLowerCase());