TOC PREV NEXT INDEX

domref



supports


The supports method tests if this DOM implementation supports a particular feature.

Syntax

boolean = element.supports(feature[, version])
 

Parameters

feature is a string that contains the name of the feature (e.g., "")

version is a string containing the version number of the feature.

Example

if ( document.supports("package", "4.0") ) {
 
    // do something that only package 4.0 allows
 
}
 

Notes

If version is not supplied, the method returns true is any version of the specified feature is supported.

Specification

Not part of the specification.


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX