欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

用JavaScript编写打开各种窗口

程序员文章站 2022-03-02 12:06:36
...

<html>
<head>
<title>新开一个命名窗口</title>
</head>
<body>
<a href="#" onclick="window.open('window_1.htm','','width=300,height=300')">新开一个指定大小的窗口</a><br>
<a href="#" onclick="window.open('aaa.htm','','width=300,height=300,menubar=yes')">新开一个指定大小的、有菜单栏的窗口</a><br>
<a href="#" onclick="window.open('aaa.htm','','width=300,height=300,menubar=yes,status=yes')">新开一个指定大小的、有菜单栏的、有状态栏的窗口</a><br>
<a href="#" onclick="window.open('aaa.htm','','width=300,height=300,menubar=yes,status=yes,toolbar=yes')">新开一个指定大小的、有菜单栏的、有状态栏的、有工具栏的窗口</a><br>
<a href="#" onclick="window.open('aaa.htm','','width=300,height=300,menubar=yes,status=yes,toolbar=yes,resizable=no')">新开一个指定大小的、有菜单栏的、有状态栏的、有工具栏的、不能调整大小的窗口</a><br>
<a href="#" onclick="window.open('aaa.htm','','width=300,height=300,menubar=yes,status=yes,toolbar=yes,resizable=yes')">新开一个指定大小的、有菜单栏的、有状态栏的、有工具栏的、可以调整大小的窗口</a><br>
<a href="#" onclick="window.open('aaa.htm','','width=300,height=300,menubar=yes,status=yes,toolbar=yes,location=yes')">新开一个指定大小的、有菜单栏的、有状态栏的、有工具栏的、有地址栏的窗口</a><br>
<a href="#" onclick="window.open('sample05.htm','','width=300,height=300,menubar=yes,status=yes,toolbar=yes,location=yes,scrollbars=yes')">新开一个指定大小的、有菜单栏的、有状态栏的、有工具栏的、有地址栏的、有滚动条的窗口</a><br>
<a href="#" onclick="window.open('sample05.htm','','width=300,height=300,menubar=yes,status=yes,toolbar=yes,location=yes,scrollbars=no')">新开一个指定大小的、有菜单栏的、有状态栏的、有工具栏的、有地址栏的、无滚动条的窗口</a><br>
</body>
</html>
相关标签: JavaScript HTML