<iframe src="xxxx.htm" id="a" name="a"></iframe><script language="javascript" type="text/javascript">
frames.a.document.designMode="On";
</script>
frames.a.document.designMode="On";
</script>
解决方案 »
- 点击链接保存图片,换了firefox就不好用了.
- 在servlet中,加入JS的alert,为什么没有提示窗口,而直接进入了response的页面。代码如下:
- extjs4的define方法中怎么实现load事件,请进
- JSP 和 javascript
- 怎样顺序读取文本文件中的内容?
- 蛙蛙请教:关于ajax,xmlhttp跨域请求和HTC组件的CSS继承问题
- 哪位好心大哥帮忙,急求(在线等)
- 请问 window.SetFocus(); 为什么会出错????
- 如何记录下用户对checkbox的操作
- 怎样把float转换成string.
- 如何提取多选按钮的多个选项,jsp用的数组,javascript可以么?怎么作啊谢了
- 会javascript和C请进
function Editor(content){
document.write('<iframe name="wrEditor" id="wrEditor" runat="server" width="900" height="400" src="about:blank"></iframe>');
oEditor = document.wrEditor;
var strHtml = '<html><head><style>body{font-size:14px;line-height: 20px; margin:2px;}\ntd, a{color:#0000FF; font-size:14px;}</style>';
strHtml += '<script language="javascript" src="E:\\my project/PermanentAssets/setday.js"></script>';
strHtml += '</head><body>'+content+'</body></html>';
oEditor.document.open();
oEditor.document.write(strHtml);
oEditor.document.close(); oEditor.document.designMode="On";
oEditor.focus();
}也就是说已经有了一个iframe了,只要把iframe中的内容改成要显示的页面就可以了