blob: 4833b50376de7dcf20957f4d0f49cf6709764be2 [file] [log] [blame]
<div id="div" contenteditable="true"></div>
<script>
div = document.getElementById("div");
div.focus();
document.execCommand("InsertText", false, "foo");
document.execCommand("Delete");
document.execCommand("Undo");
</script>