హెచ్టిఎంఎల్ డొమ్ డాక్యుమెంట్ డిజైన్ మోడ్ అట్రిబ్యూట్

definition and usage

designMode attribute setting or returning whether the document is editable.

see also:

Element contentEditable attribute

instance

example 1

get the design mode:

document.designMode;

try it yourself

example 2

make the document editable:

document.designMode = "on";

try it yourself

syntax

getting:

document.designMode

setting:

document.designMode = "on|off"

attribute value

value description
off default. This document is not editable.
on this document is editable.

browser support

all modern browsers support document.designMode

Chrome IE Edge Firefox Safari Opera
Chrome IE Edge Firefox Safari Opera
支持 11 支持 支持 支持 支持