Document: designMode プロパティ
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
document.designMode
は、文書全体を編集可能にするかどうかを制御します。妥当な値は "on"
および "off"
です。仕様書では、このプロパティの既定値は "off"
です。 Firefox はこの標準仕様に従っています。初期のバージョンの Chrome や IE は既定で "inherit"
です。 Chrome 43 以降では、既定値は "off"
であり、 "inherit"
には対応しなくなりました。 IE6 ~ 10 では、値が大文字です。
値
designMode
が on または off のどちらに設定されているか(または設定するか)を示す文字列です。有効な値は on
および off
です。
例
<iframe>
の文書を編集可能にします。
js
iframeNode.contentDocument.designMode = "on";
仕様書
Specification |
---|
HTML # dom-document-designmode-dev |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
designMode |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.