亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

代碼錯哪了,點按鈕打不開


<!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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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.xianlaiwan.cn','_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下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號