<!--实例003通过按钮创建窗口--> <head>
<meta charset="UTF-8">
</head>
<form action="" name="form" method="post">
<input type="button" name="button" value="创建新窗口" onclick="hs()">
</form>
<script>
function hs() {
window.open("index.html","new","height=100,width=300,top=200,left=500");
}
</script>