queryCommandSupported method (document, TextRange, ...)
Returns whether the specified command is supported by the current object.
The use of a non-supported command for the execCommand method raises an exception.
Note: the queryCommandSupported method is supported by Firefox, but it is not implemented and raises an exception.
You can find the related objects in the Supported by objects section below.
|Required. A case-insensitive string that specifies the name of the command. See command identifiers for more information.|
Boolean. One of the following values:
|The specified command is not supported.|
|The specified command is supported.|
Example HTML code 1:
This example illustrates the use of the queryCommandSupported method:
Did you find this example helpful?
User Contributed Comments