HTML: Markup language
CSS: Styling language
JavaScript: Scripting language
Web APIs: Programming interfaces
All web technology
Learn web development
Discover our tools
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
View in English Always switch to English
document.designMode는 전체 document의 편집 가능 여부를 제어합니다. 유효한 값은 "on" 과 "off" 입니다. 명세에 따르면, 이 속성은 기본적으로 "off"로 설정되어 있습니다. Firefox는 이 표준 명세를 따릅니다. Chrome과 IE의 초기 버전들에서는 "inherit" 로 설정되어 있습니다. IE6-10 브라우저에서는, 값이 대문자로 표기됩니다.
document.designMode
"on"
"off"
"inherit"
var mode = document.designMode; document.designMode = "on"; document.designMode = "off";
<iframe>의 document를 편집 가능하게 설정합니다.
<iframe>
iframeNode.contentDocument.designMode = "on";
Enable JavaScript to view this browser compatibility table.
HTMLElement.contentEditable