Prev Demo
Contenteditable Attribute
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <form method="post" action="wbr.htm"> <div contenteditable="true" onblur="SaveContent()" style="border: 1px solid #0094ff;"> This is the content of the div that is editable. You can place mouse cursor here and start editing. </div> <br /> <div contenteditable="false" style="border: 1px solid #0094ff;">This is the content of the div that is notediable.</div> </form> </body> </html>
Note: We DO NOT save your trial code in our database.
Output