function openWindow()
{
var open=confirm("确定打开新窗口吗?");
if(open==ture)
{
var url=prompt("请输入网址:","http://www.baidu.com/");
if(url!=null)
{
window.open(url,'_blank','width=400,heigth=500,menubar=no,toolbar=no')
}
else
{
alert("Goodbye!")
}
}
else
{
alert("Goodbye!")
}
}
v
true