VBScript使用window.open打开新窗口

来源:互联网 发布:遂宁知秋凤凰婚庆 编辑:程序博客网 时间:2024/06/02 20:57

转:http://blog.csdn.net/yeorange/article/details/4354700

<html>
<head>
<title>网页特效-综合特效-VBScript使用window.open打开新窗口</title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
</head>
<body>
<!--把下面代码加到<body>与</body>之间-->
<script language="vbscript">
<!--
sub win()
window.open "http://hi.baidu.com/yewin/","New","width=800,height=600,toolbar=1,status=0,location=0,menubar=0,scrollbars=0"
end sub
 -->
</script>
<input type="button" value="打开窗口" onclick="vbs:win()">
<input type="button" value="打开窗口" language=vbscript onclick="window.open 'http://hi.baidu.com/yewin','New','width=300,height=100,toolbar=1,status=0,location=0,menubar=0,scrollbars=0'">
</body>
</html>

0 0
原创粉丝点击