<script type="text/javascript">
function openWindow() {
var open=confirm("是否打开新窗口");
if(open==true){
var url=prompt("确定打开的网址","http://www.imooc.com/");
if(url!=null)
{
window.open(url,"_blank",'width=400,height=500,toolbar=no,menubar=no');
}
else{alert("nono");}
}
else{alert("nono");}
}