function openWindow(){
var a= confirm("是否要打开?");
if(a==true){var b= prompt("请输入要打开的网址:");
if (b="http://www.imooc.com") {window.open('http://www.imooc.com','_blank','width=400,height=500,toolbar=no,menubar=no'); }
else{window.close();}}
else{window.close();}}
var a= confirm("是否要打开?");
if(a==true){var b= prompt("请输入要打开的网址:");
if (b="http://www.imooc.com") {window.open('http://www.imooc.com','_blank','width=400,height=500,toolbar=no,menubar=no'); }
else{window.close();}}
else{window.close();}}
<!DOCTYPE html>
</html>
<head>
<title>ceshi bianliang var</title>
</head>
<bdoy>
<script>
var chengji=80
if chengji>80
{document.write("及格率牛逼")
}
else
{document.write(''渣渣,继续学习)
}
</script>
</body>
</html>
</html>
<head>
<title>ceshi bianliang var</title>
</head>
<bdoy>
<script>
var chengji=80
if chengji>80
{document.write("及格率牛逼")
}
else
{document.write(''渣渣,继续学习)
}
</script>
</body>
</html>
2016-01-15
已采纳回答 / 阿beau
有三个错误:1:cancel函数里,要使用确认框confirm2:cancel函数里 变量的声明 var 3:widthchange函数中 300px要加上双引号
2016-01-15
已采纳回答 / xiamion
<input type="button" value="隐藏内容" onclick="display_none" > <input type="button" value="显示内容" onclick="display_block">在调用函数的时候没有写括号:: <input type="button" value="隐藏内容" onclick="display_none()" > <input type="button" value=...
2016-01-15
百度一下document.write()就看到了:“在javascript中,document.write()方法常用来网页向文档中输出内容。”
任务中已经写明了没有输出结果,所以大家就别加这一串了行吗→_→
任务中已经写明了没有输出结果,所以大家就别加这一串了行吗→_→
2016-01-15