凑合吗······
<script type="text/javascript">
function openWindow(){
var a=confirm("是否打开");
if(a){
var url=prompt("请输入要打开的网址","http://www.imooc.com");
window.open(url,'width=400','height=500','menubar=no','toolbar=no');
}
}
</script>
<script type="text/javascript">
function openWindow(){
var a=confirm("是否打开");
if(a){
var url=prompt("请输入要打开的网址","http://www.imooc.com");
window.open(url,'width=400','height=500','menubar=no','toolbar=no');
}
}
</script>
2019-10-14
举报