2
目前,我这样写代码 -如何在打开之前填充新窗口?
chatWindow = window.open("chatWindow.html", "Chat Window",
resizable=0,width=700,height=600);
var currentUserElement = chatWindow.document.createElement("currentUserElement");
currentUserElement.setAttribute("id", "currentUserElement");
currentUserElement.setAttribute("value",currentUserName);
然而,有一个方法可以让我先做的createElement()部分调用之前对window.open()?
让服务器首先创建它。 :) – epascarello