HTML DOM designMode Property
Definition and Usage
The designMode
property sets or returns whether the document is editable or not.
Browser Support
Property | |||||
---|---|---|---|---|---|
designMode | Yes | Yes | Yes | Yes | Yes |
Syntax
Get:
document.designMode
Set:
document.designMode = "on|off"
Property Values
Value | Description |
---|---|
off | Default value. The document is not editable |
on | The document is editable |
Technical Details
Return Value: | A String, "on" or "off", specifying whether the document is editable or not |
---|---|
Default Value: | off |
More Examples
Example
Return the designMode of the current document:
var x = document.designMode;
Try it Yourself »
Related Pages
DOM Element contentEditable Property
❮ Document Object