- <SCRIPT LANGUAGE="javascript">
- <!--
- window.open (‘page.html‘)
- -->
- </SCRIPT>
固定大小:
- <SCRIPT LANGUAGE="javascript">
- <!--
- //这句要写成一行
- window.open (‘page.html‘, ‘newwindow‘, ‘height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no‘)
- -->
- </SCRIPT>
另一种方式:
<html>
<head>
<title>指定弹出窗口位置(IE)</title>
<script language="javascript">
<!--
function winpop(){
window.open("http://www.jb51.net","","top=100,left=100,width=300,height=200");
}
//-->
</script>
</head>
<body onLoad="winpop()">
指定弹出窗口位置
</body>
</html>
时间: 2024-10-12 16:54:32