Edit the web page Live in Google Chrome Browser using document.designMode

   JavaScript

Isn’t it fun if you can control the web page and do the live content editing. document.designMode allows to do that, using this method you can make the entire document editable.

Syntax

document.designMode // get
document.designMode = "on" or "off" // set

Example

document.designMode = "on"

Browser Support

Check here for browser compatibility.

Tags: Content EditabledesignModeJavaScriptLive Editing

Leave a Comment