English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
designModeThe property specifies whether to edit the entire document.
Return the designMode property:
document.designMode
Set the designMode property:
document.designMode = on|off
document.designMode = "on";Test and see‹/›
Please refer to HTML contenteditableProperty
All browsers fully support the designMode property:
Property | |||||
designMode | Yes | Yes | Yes | Yes | Yes |
Value | Description |
---|---|
off | The document is not editable (default setting) |
on | The document is editable |
Default Value: | off |
---|---|
Return Value: | string (onoroff),specifies whether the document is editable |
DOM Version: | DOM Level1 |
Return the designMode of the document:
var mode = document.designMode;Test and see‹/›