Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM isSupported method

HTML DOM Node isSupported() method

Element Object Reference Element object

Example

Check whether the button element supports the version 2.0 core feature:

var item=document.getElementsByTagName("BUTTON")[0];

item.isSupported("Core","2.0");

Output result:

true

Try it »


Definition and Usage

The isSupported() method is used to determine whether the current node supports a certain feature.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the isSupported method

Note: Internet Explorer 8 and earlier IE versions do not support this method.


Syntax

node

.isSupported(

feature

,

version

)

Parameters

Parameters Type Description
feature String Required. Defines the feature you want to check for support
version String Optional. Defines the version you want to check for support.

Return Value

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

Technical Details

DOM version Core Level 2 Node Object

Element Object Reference Element object