静态网页中怎么可以打开一个固定大小的窗口

来源:百度知道 编辑:UC知道 时间:2024/06/20 11:33:43
静态网页中怎么可以打开一个固定大小的窗口!!

没有菜单栏,没有工具栏和地址栏!!
不行呀,你给的有没有语法错误!~~~~

例如这个链接,
<a href="#" onclick="window.open('hanfenghero.htm','blueidea','toolbar=no,location=no,width=600,height=300');return false;">信息查询</a>

'toolbar=no,location=no,width=600,height=300'
这一句包括了所有你想要的!
这样设置了你的下一页面的效果!

一、在本地同一文件夹下建两空白文件:index.htm、page.htm

二、index.htm内放入以下代码(不用改变):
<SCRIPT>
function ow(obj)
{ URL=obj.href;
window.open(URL,'','width=424,height=525,scrollbars=no,toolbars=no');
return false;
}
</SCRIPT>
<A onclick="return ow(this)" href="page.htm" target=_blank>点击弹出新窗口---page.htm---</A>

三、<!--page.htm-->放入以下代码:
page.htm固定大小没有菜单栏,没有工具栏和地址栏

四、先打开index.htm点击后实现你要求!