原文1
原文2
var tempwindow=window.open(‘_blank’); // 先打开页面
tempwindow.location=‘http://www.baidu.com’; // 后更改页面地址
<!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.qingning99.cn', '', 'width=300,height=200,menubar=no,toolbar=no,status=no,scrollbars=yes')
}
</script>
</head>
<body>
<input name="button" type="button" onClick="Wopen()" value="点击我,打开新窗口!" />
</body>
</html>