如何用实现隐藏当前窗口的菜单、地址栏和按钮栏?

因为窗口是使用其它工具打开的,一开始不能用window.open()实现,现在想在onload事件中调用javascript程序实现题目中的功能,请高手们指点?????
---------------------------------------------------------------

1<object classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" id="close" type="application/x-oleobject" viewastext="">
2<param name="Command" value="Close"/>
3</object>
1<input name="my" onclick="close.Click();" style="display:none" type="button" value="关闭窗口"/>
1<script>   
2if(document.body.clientWidth!=window.screen.width-10 && document.body.clientHeight!=screen.height-28){   
3var sWidth=screen.width-10;   
4var sHeight=screen.height-28;   
5window.open("index.asp","","scrollbars=no,fullscreen=no,toolbar=no,status=no,menubar=no,resizable=no,width=" + sWidth + ",height=" + sHeight + ",left=0,top=0");   
6window.focus();   
7window.setInterval("my.onclick()",100)   
8}   
9</script>

---------------------------------------------------------------

在当前页面上是不可能实现的,至少当前是的,所以要实现的方法都是先开一个新窗口再关闭老窗口而已。

 1<body onload="Wopen()">
 2<object classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" height="0" id="closes" type="application/x-oleobject" width="0">
 3<param name="Command" value="Close"/></object>
 4<script language="Javascript"><!--   
 5function Wopen(){   
 6if(window.name != "big"){   
 7closes.Click(); // 关闭老网页   
 8window.open(top.location,"big","scrollbars=no,fullscreen=no,toolbar=no,status=no,menubar=no");}//新开网页   
 9}   
10// --></script><br/>
11<input onclick="closes.Click()" type="button" value="关闭窗口"/><br/>
12</body>
Published At
Categories with Web编程
comments powered by Disqus