<!DOCTYPE html>
<html>
<head>
<title>javascript01.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<script type="text/javascript">
</script>
</head>
<body>
<a href="#" onclick="window.open('js04.html', 'aaaa', 'width=500,height=600')">新开窗口</a> <br>
<a href="#" onclick="window.open('js04.html', 'aaaa', 'width=300,height=600')">新开窗口</a>
</body>
</html>
JS window.open新开窗口
最新推荐文章于 2024-04-26 09:57:54 发布
本文提供了一个使用JavaScript进行窗口打开功能的基本示例。通过点击页面上的链接,可以在新窗口中打开指定的HTML文件。示例展示了如何设置新窗口的尺寸,并且提供了两个不同宽度设置的示例。
7934

被折叠的 条评论
为什么被折叠?



