<!DOCTYPE html>
<html lang="en-US">
<body>
<p>Click on the following button to check whether this document's designMode is 'on' or 'off'.</p>
<button onclick="myFunction()">Click Me</button>
<p id="point"></p>
<script>
var x = document.getElementById("point");
function myFunction(){
x.innerHTML = document.designMode;
}
</script> </body>
</html>