queryCommandEnabled Method
Returns whether the 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. Returns true if the command is enabled, or false otherwise.
Remarks
Using queryCommandEnabled("delete") on a TextRange object returns true, while queryCommandEanbled("delete") on a document object returns false. However, execCommand("delete") can still be used to delete the selected text.
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. document, controlRange, TextRange
See Also
execCommand, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.