X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR 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.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The isSupported() method is supported in all major browsers.

Note: Internet Explorer 8 and earlier does not support this method.


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

Return Value

Type Description
Boolean true if the feature is supported, otherwise false

Technical Details

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 FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook