吴伟贤のBlog

Feed Rss

js设置打开窗口大小

06.18.2008, js, by .

如下是宽800高600没有滚动条,不允许缩放
<script language="JavaScript">
function SA80open()
{ ContentWindow=window.open("satellite_a80_index.htm","_blank","toolbar=no,width=800,height=600;,directories=no,status=no,scrollbars=yes,resize=no,menubar=no");
}
–>
</script>
在超连接地方调用该函数,如
<a href="javascript:SA80open()"><font color="#FF0000">详细内容</font></a>

关闭本页(windows.close())就行了,

评论已关闭。