crop_rotate
Run
<!DOCTYPE html> <html> <head> <title> DOM iscontentEditable Property </title> </head> <body style="text-align: center"> <h1 style="color:green"> CloseTag </h1> <h2> DOM iscontentEditable Property </h2> <span id="P" contenteditable="true"> Span 1 is editable. </span> <br> <span id="P1"> Span 2 is non editable. </span> <br> <button onclick="myFunction()"> Click me! </button> <p id="d"></p> <p id="d1"></p> <script> function myFunction() { var x = document.getElementById("P").isContentEditable; var y = document.getElementById("P1").isContentEditable; document.getElementById("d").innerHTML = "Span 1 is editable: " + x; document.getElementById("d1").innerHTML = "Span 2 is editable: " + y; } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCg0KPGhlYWQ+DQoJPHRpdGxlPg0KCURPTSBpc2NvbnRlbnRFZGl0YWJsZSBQcm9wZXJ0eQ0KPC90aXRsZT4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+IDo6LXdlYmtpdC1zY3JvbGxiYXJ7d2lkdGg6N3B4O2hlaWdodDo3cHg7fTo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2t7YmFja2dyb3VuZDojZmZmO306Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1ie2JvcmRlci1yYWRpdXM6NXB4O2JhY2tncm91bmQ6IzJmNDVmZjt9PC9zdHlsZT48L2hlYWQ+DQoNCjxib2R5IHN0eWxlPSJ0ZXh0LWFsaWduOiBjZW50ZXIiPg0KCTxoMSBzdHlsZT0iY29sb3I6Z3JlZW4iPg0KCQkJQ2xvc2VUYWcNCgkJPC9oMT4NCg0KCTxoMj4NCgkJCURPTSBpc2NvbnRlbnRFZGl0YWJsZSBQcm9wZXJ0eQ0KCQk8L2gyPg0KCTxzcGFuIGlkPSJQIiBjb250ZW50ZWRpdGFibGU9InRydWUiPg0KCVNwYW4gMSBpcyBlZGl0YWJsZS4NCgkJDQoJPC9zcGFuPg0KICAgIDxicj4NCgk8c3BhbiBpZD0iUDEiPg0KCVNwYW4gMiBpcyBub24gZWRpdGFibGUuD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