English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

The HTML DOM isContentEditable Property

HTML DOM Element Object

isContentEditableThe read-only property returns a boolean value, which is true if the content of the element is editable; otherwise, it returns false.

UsagecontentEditableChanges the editable state of the element.

Syntax:

HTMLElement.isContentEditable
var x = document.getElementsByTagName("h3")[0].isContentEditable;
Test and See‹/›

Browser Compatibility

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

Property
isContentEditable113.593.26

Technical Details

Return Value:Boolean type, returns true if the content of the element is editable, otherwise returns false

Related References

HTML DOM Reference:HTML DOM contentEditable attribute

HTML Reference:HTML contenteditable attribute

HTML DOM Element Object