Name
execCommand( ) — NN n/a IE 4 DOM n/a
Synopsis
execCommand(”commandName
“[, UIFlag
[, value
]])
Executes the named command on the current
TextRange
object. Many commands work best when the
TextRange
object is an insertion point. See Appendix D for a list of commands.
Returned Value
Boolean value: true
if command is successful;
false
if unsuccessful.
Parameters
-
commandName
A case-insensitive string value of the command name. See Appendix D.
-
UIFlag
Optional Boolean value:
true
to display any user interface triggered by the command (if any);false
to prevent such display.-
value
A parameter value for the command.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.