Hasty Briefsbeta

Bilingual

Document.designMode Property

7 hours ago
  • #JavaScript
  • #Web Development
  • #DOM
  • The `designMode` property controls whether the entire document is editable.
  • Valid values for `designMode` are "on" and "off".
  • According to the specification, the default value is "off", which Firefox follows.
  • Earlier versions of Chrome and IE defaulted to "inherit", but Chrome 43 changed to "off" and dropped "inherit".
  • In IE6-10, the value is capitalized.
  • Example usage: `iframeNode.contentDocument.designMode = "on";` to make an iframe's document editable.
  • Specification reference: HTML DOM # dom-document-designmode-dev.