X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM Node isSupported() Method

Element Object Reference Element Object

Example

Check if the feature Core, version 2.0, is supported for the <button> element:

var item = document.getElementsByTagName("BUTTON")[0];
item.isSupported("Core", "2.0");

The result will be:

true

Try it yourself »


Definition and Usage

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.


Browser Support

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.


Syntax

node.isSupported(feature,version)

Parameters

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

Technical Details

Return Value: A Boolean, returns true if the feature is supported, otherwise false
DOM Version Core Level 2 Node Object


Element Object Reference Element Object


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook