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

代码错哪了,点按钮打不开


<!DOCTYPE H

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html><!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html>

TML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(ow==true){

            window.open('www.imooc.com','_blank','width=600px,height=400px');

        }

        else

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html>


正在回答

3 回答

把判断改为Wind==ture,把else删除。

0 回复 有任何疑惑可以回复我~

<!DOCTYPE H

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>window对象</title>

<script type="text/javascript">

    function ow(){

        var Wind=window.confirm("欢迎来到慕课网");

        if(Wind){

            window.open('http://www.imooc.com','_blank','width=600px,height=400px');

        }

    }    

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onClick="ow()" />

</form>

</body>

</html>


0 回复 有任何疑惑可以回复我~

ow是函数不能用于判断

0 回复 有任何疑惑可以回复我~
#1

非要用中英文数字以及下划线真麻烦 提问者

改成Wind了,还是没反应?
2017-11-19 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

代码错哪了,点按钮打不开

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信