HTML DOM designMode Property (original) (raw)

Last Updated : 11 Jul, 2025

The **DOM designMode property in HTML is used to specify whether the document is editable or not. It can also be used to set the document editable.

**Syntax:

document.designMode = "on|off";

document.designMode

**Property Value: This property contains two values which are listed below:

**Example 1: In this example, we will use **DOM designMode property.

HTML `

DOM designMode Property

GeeksforGeeks

DOM designMode Property

This document is editable!

<!-- script to set designMode property
    editable -->
<script>
    document.designMode = "on";
</script>

`

**Output:

**Example 2: In this example, we will use the get method of designMode.

HTML `

DOM designMode Property

GeeksforGeeks

DOM designMode Property

Get the designMode

`

**Output:

**Supported Browsers: The browser supported by the **designMode method are listed below: