如下代码加入主窗口<head>区:
<script language="javascript">
<!-- function openwin() { window.open("page.html","","width=200,height=200") } //-->
</script>
加入<body>区: <a href="1.htm" onclick="openwin()">open</a>即可
具体请看
http://www.cstd.impu.edu.cn/lwz/webpage/open_window.htm
<script language="javascript">
<!-- function openwin() { window.open("page.html","","width=200,height=200") } //-->
</script>
加入<body>区: <a href="1.htm" onclick="openwin()">open</a>即可
具体请看
http://www.cstd.impu.edu.cn/lwz/webpage/open_window.htm
newWindow = window.open(loadpos,"surveywin","toolbar,resizable,scrollbars,dependent,width=400,height=280");
</script>
会自动打开一个窗口