HTML DOM Element isSupported() Method

Definition and Usage

isSupported() Method to check if the specified node supports the specified feature.

isSupported() The method is deprecated. Do not use it.

Instance

Check if the element supports Core 2.0 version:

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

亲自试一试

语法

elementisSupported(feature, version)

Parameter

Parameter Description
feature Required. Check if the feature is supported.
version Optional. The version of the feature.

Return Value

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