Returns a Boolean value that indicates whether a specified command can be successfully executed using execcommand, given the current state of the document.
dhtml语法
benabled = object.querycommandenabled(scmdid)
parameters
return value
boolean that returns one of the following possible values:
true | the command is enabled. |
false | the command is disabled. |
remarks
using querycommandenabled ("delete") on a textrange object returns true, while querycommandenabled ("delete") on a document object returns false. however, execcommand ("delete") can still be used to delete the selected text.
是否符合公共标准
There is no public standard that applies to this method.
Applies To
更多语法参考
execcommand, querycommandindeterm, querycommandstate, querycommandsupported, queryCommandValue