Click to return to the DHTML, HTML     
queryCommandIndeterm Meth...     queryCommandSupported Met...     DHTML Methods    
Web Workshop  |  DHTML, HTML & CSS

queryCommandState Method


Returns the current state of the command.

Syntax

bDone = object.queryCommandState(sCmdID)

Parameters

sCmdIDRequired. String that specifies a command identifier.

Return Value

Boolean. Returns true if the given command has been executed on the object, false if it has not, and null if it is not possible to determine the command state.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
document, controlRange, TextRange

See Also

execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandSupported, queryCommandValue



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.