Check if the feature Core, version 2.0, is supported for the <button> element:
The result will be:
The isSupported() method checks if a specified feature is supported for the specified node.
Note: This method is obsolete in many browsers. Try to avoid using it.
The numbers in the table specify the first browser version that fully supports the method.
Method | |||||
---|---|---|---|---|---|
isSupported() | Not supported | 9.0 | Not supported | Yes | Not supported |
Note: This method was supported in Chrome, Firefox and Opera before, but they no longer support it.
Parameter | Type | Description |
---|---|---|
feature | String | Required. Defines the feature you want to check if is supported |
version | String | Optional. Defines the version of the feature you want to check if is supported |
Return Value: | A Boolean, returns true if the feature is supported, otherwise false |
---|---|
DOM Version | Core Level 2 Node Object |