<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>close()</title>
<script type="text/javascript">
function a()
{
var b=confirm("你确定打开慕课吗?")
if(b==true)
{window.open('http://www.imooc.com','_blank','width=300,height=200,menubar=no,toolbar=no,')}
else if(c!=null)
var c=prompt("请输入你喜欢的网址:");
{window.open(c,'_blank','width=300,height=200,menubar=no,toolbar=no,')}
else
{alert("真的没有喜欢的网址吗?")}
}
</script>
</head>
<body>
<input type=submit onClick="a()" value="点我点我">
</body>
</html>