Easy Tutorial
❮ Prop Radio Value Event Onerror ❯

HTML DOM isContentEditable Property

Element Object

Example

Check if a <p> element is editable:

var x = document.getElementById("myP").isContentEditable;

x outputs:

true

Definition and Usage

The isContentEditable property returns whether the content of the element is editable.

This property is read-only.

Tip: To modify the editable state of an element, use the contentEditable property.


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property Chrome IE Firefox Safari Opera
isContentEditable 11.0 5.5 3.0 3.2 10.6

Syntax

Technical Details

| Return Value: | Boolean, returns true if the element content is editable, otherwise returns false. | | --- | --- |


Related Pages

HTML reference: HTML contenteditable Attribute


Element Object

❮ Prop Radio Value Event Onerror ❯