www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Methods
 hasFeature Method
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. The name of the standard.
XMLDOM Core standard.
HTMLDOM HTML standard.
vVersion Optional. The version number of the standard.
1.0Level 1.

Return Value

Returns one of the following possible values.

trueStandard is implemented.
falseStandard is not implemented.

Remarks

hasFeature was introduced in Microsoft Internet Explorer 6.

The sFeature parameter is case-insensitive.

Example

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 World Wide Web link.

Applies To

implementation
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG