<!DOCTYPE html>
<html>
<body>

<p id="myP" contenteditable="true">Click the button to find out if I am editable.</p>

<button onclick="myFunction()">Try it</button>

<p id="demo"></p>

<script>
function myFunction() {
    var x = document.getElementById("myP").isContentEditable;
    document.getElementById("demo").innerHTML = x + " = The p element is editable. To see the effect, try to change its text.";
}
</script>

</body>
</html>