<script type="text/javascript">
function openWindow()
{var a=confirm("FBI Warning");
if(a==true)
{
var b=prompt("确定???","http://www.imooc.com/")
window.open(b,'_blank','width=400px,height=500px,toolbar=no,menubar=no')
}
else
{null; }
</script>
function openWindow()
{var a=confirm("FBI Warning");
if(a==true)
{
var b=prompt("确定???","http://www.imooc.com/")
window.open(b,'_blank','width=400px,height=500px,toolbar=no,menubar=no')
}
else
{null; }
</script>
function openWindow()
{var a = confirm("请确认是否打开!");
if(a==true){
var b = prompt("请输入你要打开的网址");
if(b!=null)
{
window.open(b,'_blank','width=400,height=500,toolbar=no,menubar=no');}
else{alert('请输入你要打开的网址'); }
}else
{alert('goodbye');}}</script>
{var a = confirm("请确认是否打开!");
if(a==true){
var b = prompt("请输入你要打开的网址");
if(b!=null)
{
window.open(b,'_blank','width=400,height=500,toolbar=no,menubar=no');}
else{alert('请输入你要打开的网址'); }
}else
{alert('goodbye');}}</script>
function openWindow(){
var OPWconfirm = confirm("是否打开新的窗口?");
if(OPWconfirm = true){
var url = prompt("请输入您想要前往的网址","https://www.hao123.com/");
window.open(url,'_blank','width=400,height=500,menubar=no,toolbar=no');}
else{alert("打扰了")
}
}
var OPWconfirm = confirm("是否打开新的窗口?");
if(OPWconfirm = true){
var url = prompt("请输入您想要前往的网址","https://www.hao123.com/");
window.open(url,'_blank','width=400,height=500,menubar=no,toolbar=no');}
else{alert("打扰了")
}
}