Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


hasFeature Method

Returns a value that indicates whether the object implements a specific Document Object Model (DOM) standard.

Syntax

bImplemented = implementation .hasFeature( sFeature [ , vVersion ] )

Parameters

sFeature Required. Name of the standard.
XML DOM Core standard.
HTML DOM HTML standard.
vVersion Optional. Version number of the standard.
1.0 Level 1.

Return Value

Returns one of the following possible values:

true Standard is implemented.
false Standard is not implemented.

Remarks

The sFeature parameter is case-insensitive.

Example

The code in 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");

Standards Information

This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .

Applies To

[ Object Name ] Platform Version
Win32:
 
implementation
Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.