I created a demo uses jQuery version 1.8.3. There is the Demo:
There is another sample code you can copy for test:
if ($.browser.chrome) {
alert("You are using Google Chrome");
}else if ($.browser.mozilla) {
alert("You are using Mozilla FireFox.");
}else if ($.browser.msie) {
alert("You are using Internet Explorer");
}else if ($.browser.opera) {
alert("You are using Opera");
}else{
alert("You are using other browsers.");
}
No comments :
Post a Comment