我有问题,写文件:文件写入和开放在同一个窗口
NewWindow.document.write("Hi, this is test");
NewWindow = window.open("pages/Example.html","_self");
和页面是空白。如果我用
NewWindow.document.write("Hi, this is test");
NewWindow = window.open("pages/Example.html","displayWindow");
它的作品,但我想重写当前页面的内容。
var NewWindow = window.open("pages/Example.html","_self");
NewWindow.document.write("Hi, this is test");
我想创建对象窗口,写信给他,然后显示。
检查您的控制台。 – Script47