代碼錯(cuò)哪了,點(diǎn)按鈕打不開
<!DOCTYPE H
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html>
TML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(ow==true){
? ? ? ? ? ? window.open('idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? ? ? else
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html>
2018-04-11
把判斷改為Wind==ture,把else刪除。
2018-02-02
<!DOCTYPE H
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? function ow(){
? ? ? ? var Wind=window.confirm("歡迎來(lái)到慕課網(wǎng)");
? ? ? ? if(Wind){
? ? ? ? ? ? window.open('http://idcbgp.cn','_blank','width=600px,height=400px');
? ? ? ? }
? ? } ? ?
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onClick="ow()" />
</form>
</body>
</html>
2017-11-19
ow是函數(shù)不能用于判斷