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

Click to Rate and Give Feedback
Methods
 queryCommandEnabled Method
queryCommandEnabled Method

Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.

Syntax

bEnabled = object.queryCommandEnabled(sCmdID)

Parameters

sCmdID Required. String that specifies a command identifier.

Return Value

Boolean that returns one of the following possible values:

trueThe command is enabled.
falseThe command is disabled.

Remarks

Using queryCommandEnabled ("delete") on a TextRange object returns true, while queryCommandEnabled ("delete") on a document object returns false. However, execCommand ("delete") can still be used to delete the selected text.

Standards Information

There is no public standard that applies to this method.

Applies To

document, controlRange, TextRange

See Also

execCommand, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue
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