Document.queryCommandEnabled() (Method)

Part of an MSIE special document command handling mechanism. Indicates if a command is available for a document or text range.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Boolean primitive
JavaScript syntax:IEmyDocument.queryCommandEnabled(aCommandName)
Argument list:aCommandNameAn MSIE command name

This method returns a Boolean value that indicates whether the named command is enabled. Many factors can affect the result of this command. It may depend on the ready state of the document or whether a selection is in force.

Refer to the document.execCommand() method for a list of the available commands.

Warnings:

See also:Document object, Document.execCommand(), TextRange.queryCommandEnabled()