Name

execCommand( ) — NN n/a IE 4 DOM n/a

Synopsis

execCommand(”commandName“[, UIFlag[, value]])

Available only in the Win32 platform for IE 4, the execCommand( ) method executes the named command. Most commands require that a TextRange object be created first for an insertion point. See Appendix D, for a list of commands.

Returned Value

Boolean value: true if command was 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.