吴旭晓个人博客 繁体中文 简体中文

首页| 日志 |JAVA |ASP |PHP |Android |IOS |ASP.NET |JavaScript |DIV+CSS |SEO |taobaoke |饼哥语录
繁体中文 简体中文

用JS设置打开的浏览器窗口的大小

<html>
<head>
<script type=”text/javascript”>
function open_win()
{
window.open(“http://www.w3school.com.cn”,”_blank”,”toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400″)
}
</script>
</head>

<body>
<form>
<input type=”button” value=”打开窗口” onclick=”open_win()”>
</form>
</body>

</html>

作者:吴旭晓 | 来源:个人博客 | 点击量:3320 | 发布时间:2010-09-13
最新留言 | 返回上一页 | 返回首页

相关文章:

版权所有:吴旭晓个人博客 Copyright © 2013-2023 个人博客