日期:2014-05-17 浏览次数:20725 次
var content = '<iframe name="1" scrolling="auto" frameborder="0" src="' + url + '" style="width:100%;height:100%;"></iframe>';
<body>
<div class="div-margin-bottom" id="title">标题:<input id="caption" name="caption" style="width:400px;"/></div>
<p>内容:</p>
<textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10">
</textarea>
<p>
<input id="submit" type="button" value="Submit" onclick="test();"/>
</p>
</body>
if(iframeWindow.document.readyState == 'complete'){
//已经加载完,这里赋值
}else{
//没有加载完,则每次加载状态改变时都判断一下
iframeWindow.document.onreadystatechange = function(){
if(iframeWindow.document.readyState == 'complete'){
//已经加载完,这里赋值
}
};
}