---
title: "iframe的designmode属性"
author: "fourfire"
date: "2007-07-26T13:31:52Z"
tags: []
slug: "iframe-designmode"
draft: false
lastmod: "2007-07-26T13:31:52Z"
id: 105752
url: "https://fourfire.iteye.com/blog/105752"
---

&lt;html&gt;  
&lt;head&gt;  
&lt;/head&gt;  
&lt;script language="javascript"&gt;  
&lt;!--  
function start()  
{  
    document.getElementById("myiframe").contentWindow.document.designMode="on";  
}  
\--&gt;  
&lt;/script&gt;  
&lt;body onLoad="start()"&gt;  
    &lt;iframe id="myiframe" style="width:750px; height:400px; border:1;"&gt;&lt;/iframe&gt;  
&lt;/body&gt;  
&lt;/html&gt;