HTML DOM Document execCommand() method
- Previous Page embeds
- Next Page forms
- Go Up One Level HTML DOM Documents
Definition and usage
execCommand()
The method is deprecated. Do not use it.
The applet attribute returns empty in all new browsers HTMLCollection.
HTML5 does not support the <applet> element.
Alternative:
Syntax
document.execCommand(command, showUI, value)
Parameters
Parameters | Description |
---|---|
command |
The name of the command to be executed:
|
showUI | Boolean value. Specifies whether the UI should be displayed. |
value | Some commands require a value to be completed. |
Return value
Type | Description |
---|---|
Boolean value | If the command is supported, it is true; otherwise, it is false. |
- Previous Page embeds
- Next Page forms
- Go Up One Level HTML DOM Documents