当前位置: 技术问答>java相关
这段代码能在IE下运行吗?
来源: 互联网 发布时间:2015-03-04
本文导语: Writing to Same Doc function reWrite(){ //assemble content for new window var newContent="A New Doc"; newContent+="This document is brand new."; newContent+="Click the Back button to see original document."; newContent+=...
Writing to Same Doc
function reWrite(){
//assemble content for new window
var newContent="A New Doc";
newContent+="This document is brand new.";
newContent+="Click the Back button to see original document.";
newContent+="";
//write HTML to new window document
document.write(newContent);
document.close()//close layout stream;
}
|
出现错误,不能用了
写的有点问题
写的有点问题
|
我也试了,不行!!