Determine Browser
Detect the browser using jQuery, we need to import the "migrate" plugin with jQuery plugin. "$.browser" is used to find the browser version and browser type.Syntax
$.browser
The above $.browser method will return the object, this object is include all the details about the browser like, browser version, browser type.
Example
$.each($.browser, function(i,val)
{
$("#type").append('<div>' + i + ' : <span>' + val + '</span>');
});
});
Example Program:- (Editor)
Editor is Loading...
Advertisement
0 comments:
Post a Comment