Undo Command

Undo the previous command.

Scripting Information

Command Undo
User interface None. Set bUserInterface to false or omit. 
execCommand vValue Optional. Set to null or omit.
Applies to execCommandqueryCommandEnabledqueryCommandIndetermqueryCommandStatequeryCommandSupportedqueryCommandValue.

Remarks

This command applies to the document object. For example, the following button reverses the last action.


<button onclick="document.execCommand('Undo')">UNDO</button> 

Minimum Availability

Internet Explorer 5.0 and later.

Community Additions

Show: