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

XML DOM isSupported() Method


Node Object Reference Node Object

Definition and Usage

The isSupported() method checks whether the DOM implementation supports a specific feature and that the feature is supported by the specified node.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

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

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


Syntax

nodeObject.isSupported(feature,version)

Parameters

Parameter Type Description
feature String Required. Specifies the name of the feature to test
version String Optional. Specifies the version number of the feature to test

Return Value

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

Technical Details

DOM Version Core Level 2 Node Object


Example

The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc(), and checks whether the DOM implementation supports a specific feature:

Example

xmlDoc = loadXMLDoc("books.xml");

x = xmlDoc.getElementsByTagName("book")[1];
document.write(x.isSupported("Events", "2.0"));

Try it yourself »

Node Object Reference Node Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook