Result Size: 625 x 664
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The Element Object</h1>
<h2>The contentEditable Property</h2>
<p id="myP">I am a paragraph. Click "Editable" to make me editable.</p>
<button onclick="myFunction()">Editable</button>
<p id="demo"></p>
<script>
function myFunction() {
  document.getElementById("myP").contentEditable = true;
  document.getElementById("demo").innerHTML = "The paragraph is now editable. Try to edit it.";
}
</script>
</body>
</html>