为什么else后面不执行?
function openWindow()
{
var temp=confirm("是否打开网页");
if(temp=true)
{
var wer=prompt("请输入你要打开的网址:","http://www.112112.com/");
if(wer=true)
{
window.open("http://www.112112.com/","_blank","width=400,height=500,menubar=no,toolbar=no");
}
}
else
{
documment.write("null");
}
}