大写的王
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
function Wopen(){
window.open('http://www.imooc.com','_blank','width:600,height=400,top=100,left=0,scrollbars=yes');
}
</script>
</head>
<body>
<input name="button" type="button" onClick="Wopen()" value="点击我,打开新窗口!" / >
</body>
</html>
<!--语法:
window.open([URL], [窗口名称], [参数字符串])把你的url替换成你变量解释的url,即你的a2变量,还有参数值-->