undo

by kazu69

HTML

<script type="text/javascript">
function unndoo() {
theText.focus();
document.execCommand("Undo");
}
function redoo() {
theText.focus();
document.execCommand("Redo");
}
</script>
<textarea rows=5 cols=20 id=theText></textarea>
<a href="javascript:unndoo()">undo</a>
<a href="javascript:redoo()">redoo</a>