HTML DOM Document designMode
Examples
Get the designMode:
document.designMode;
Try it Yourself »
Make the document editable:
document.designMode = "on";
Try it Yourself »
Definition and Usage
The designMode
property sets or returns if the document is editable.
See Also:
Syntax
Get:
document.designMode
Set:
document.designMode = "on|off"
Property Values
Value | Description |
off | Default. The document is not editable. |
on | The document is editable. |
Browser Support
document.designMode
is supported in all modern browsers:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | 11 | Yes | Yes | Yes | Yes |