queryCommandSupported Method

Internet Development Index

Returns a Boolean value that indicates whether the current command is supported on the current range.

Syntax

bSupported = object.queryCommandSupported(sCmdID)

Parameters

sCmdID Required. String that specifies a command identifier.

Return Value

Boolean that returns one of the following possible values:

trueThe command is supported.
falseThe command is not supported.

Standards Information

There is no public standard that applies to this method.

Applies To

document, controlRange, TextRange

See Also

execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandValue