queryCommandSupported method

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

Syntax

 retVal = object.queryCommandSupported(cmdID);

Parameters

Standards information

There are no standards that apply here.

Remarks

This method is a wrapper function for the QueryStatus method to enable scriptable execution of some command constants. You can obtain an IOleCommandTarget interface by calling QueryInterface on the IHTMLDocument2 interface using IID_IHTMLDocument2 for the IID.

This method is a wrapper function for the QueryStatus method to enable scriptable execution of some command constants. You can obtain an IOleCommandTarget interface by calling QueryInterface on the IHTMLControlRange interface using IID_IHTMLControlRange for the IID.

This method is a wrapper function for the QueryStatus method to enable scriptable execution of some command constants. You can obtain an IOleCommandTarget interface by calling QueryInterface on the IHTMLTxtRange interface using IID_IHTMLTxtRange for the IID.

See also

Reference

IHTMLDocument2::execCommand

IHTMLDocument2::queryCommandEnabled

IHTMLDocument2::queryCommandIndeterm

IHTMLDocument2::queryCommandState

IHTMLDocument2::queryCommandValue