HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p contenteditable="true">You can edit this paragraph. By the way, click on the button to check the contenteditable status of this paragraph.</p> <button onclick="myFunction()">Click Me</button> <p id="point"></p> <script> var x = document.getElementById("point"); var elem = document.getElementsByTagName("p")[0]; function myFunction(){ x.innerHTML = elem.contentEditable; } </script> </body> </html>
OUTPUT
×

Save as Private