Javascript examples for jQuery Method and Property:jQuery.support
The jQuery.support property contains a collection of properties representing different browser features or bugs.
Parameter | Require | Description |
---|---|---|
propvalue | Required. | function to test for. |
The tests included are:
The following code shows how to Test whether the browser can create an XMLHttpRequest object:
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("p").html("This browser can create XMLHttpRequest object: " + jQuery.support.ajax); });/*from www . j a v a2s . com*/ </script> </head> <body> <p></p> </body> </html>