我有問題,寫文件:文件寫入和開放在同一個窗口
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