English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
HTMLElement.isContentEditable
var x = document.getElementsByTagName("h3")[0].isContentEditable;Test and See‹/›
The numbers in the table specify the first browser version that fully supports the isContentEditable property:
Property | |||||
isContentEditable | 11 | 3.5 | 9 | 3.2 | 6 |
Return Value: | Boolean type, returns true if the content of the element is editable, otherwise returns false |
---|
HTML DOM Reference:HTML DOM contentEditable attribute
HTML Reference:HTML contenteditable attribute