HTML DOM Document designMode

Examples

Get the designMode:

document.designMode;
Try it Yourself »

Make the document editable:

document.designMode = "on";
Try it Yourself »

Description

The designMode property sets or returns if the document is editable.


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 Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes 11


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.