Javascript Reference
Categories: document

javascript document execCommand( )

@March 21, 2009, 8:23 a.m.
execCommand( ) Firefox/Netscape/NN n/a IE 4(Win) Chrome/Safari/DOM n/a

execCommand("commandName"[, UIFlag[, value]])


Available only in the Win32 platforms for IE, the execCommand( ) method executes the named command. Most commands require that a TextRange object be created first for an insertion point.


A case-insensitive string value of the command name.


Optional Boolean value: true to display any user interface triggered by the command (if any); false to prevent such display.


A parameter value for the command.

Returned Value

Boolean value: true if command was successful; false if unsuccessful.

Under moderation.
JosephSon - 5 days
Under moderation.
KennethMaw - 1 weeks
Under moderation.
Howardtype - 2 years

Powered by Linode.