请教高手,有如下的js函数:
function dispuserinfo()
{
newwindow = window.open ('', 'newwindow', 'height=500; width=400; toolbar= no; menubar=no; scrollbars=no; resizable=no; location=no; status=no;top='+(window.screen.height-100)/2+';left='+(window.screen.width-200)/2); var writehtml = "<html><head><title>用户信息</title></head><body id='userinfobody'><div id='userinfo'>ssssss</div></body></html>"; newwindow.document.write(writehtml); newwindow.ducument.getElementById("userinfo").innerHTML += "FFFFFFFFFFF";}运行后,函数中的:newwindow.document.write(writehtml);语句正确执行,但是下面的newwindow.ducument.getElementById("userinfo").innerHTML += "FFFFFFFFFFF";语句没有执行。请教高手们,这个写法对吗?应该怎么写?