hasFeature method
Returns a value that indicates whether the object implements a specific Document Object Model (DOM) standard.
![]() |
Syntax
var retval = implementation.hasFeature(bstrfeature, version);Parameters
- bstrfeature [in]
-
Type: BSTR
The name of the standard.
- version [in, optional]
-
Type: Variant
The version number of the standard.
Return value
Type: Boolean
Returns one of the following possible values.| Return value | Description |
|---|---|
|
Standard is implemented. |
|
Standard is not implemented. |
Standards information
Remarks
The bstrfeature parameter is case-insensitive.
hasFeature was introduced in Microsoft Internet Explorer 6.
Examples
The following example uses the hasFeature method to test whether the object implements the DOM HTML standard.
var bSupported = document.implementation.hasFeature("HTML","1.0");
See also
Show:
