JavaScript DHTML/Node Operation/Content Editable
"contentEditable" Example
<source lang="html4strict">
<html> <body> <script language="JavaScript"> function function1() {
myP.innerText = "contentEditable is true."; document.all.myP.contentEditable = "true"; ]
} function function2() {
myP.innerText = "Try again."; document.all.myP.contentEditable = "false";
} function function3(){
alert(document.all.myP.isContentEditable);
} </script>
Try to edit this text by overwriting any part of it.
<button onclick="function1();">Make the text editable</button> <button onclick="function2();">Make the text non-editable</button> <button onclick="function3();">isContentEditable</button> </body> </html>
</source>