queryCommandValue

HTML (DHTML)

queryCommandValue Method

Internet Development Index

Returns the current value of the document, range, or current selection for the given command.

Syntax

vCmdValue = object.queryCommandValue(sCmdID)

Parameters

sCmdID Required. String that specifies a command identifier.

Return Value

Variant that returns the command value for the document, range, or current selection, if supported. Possible values depend on sCmdID . If not supported, this method returns a Boolean set to false.

Standards Information

There is no public standard that applies to this method.

Applies To

document, controlRange, TextRange

See Also

execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported