为了账号安全,请及时绑定邮箱和手机立即绑定

为什么打不开?

为什么打不开?

annynino 2015-10-30 16:36:53
<!DOCTYPE html><html> <head>  <title> new document </title>    <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>     <script type="text/javascript">      function openwindow(){        var open=confirm("您确定打开网址么?");        if(open==true){            var my=prompt("请输入您想访问的网址","http://www.baidu.com");            if(my!=null){                window.open(my,"_blank",'height=400px,width=500px,menubar=no,toolbar=no');            }            else{                alert("拜拜了您!");            }        }        else{           alert("拜拜了您!");         }  </script>  </head>  <body>   <input type="button" value="新窗口打开网站" onclick="openWindow()" />  </body></html>
查看完整描述

2 回答

?
酷客飞飞

TA贡献1条经验 获得超0个赞

function的最后少加个符号“}”

查看完整回答
反对 回复 2015-10-30
  • 2 回答
  • 0 关注
  • 1507 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信