DIV contentEditable attribute support Demo


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1.  
  2. <div id=d style="border: 1px solid black; height:200px">
  3. lipsum
  4. </div>
  5. <button onclick="document.getElementById('d').contentEditable=true;">Make it editable</button>
  6. </body>
  7. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.