读书人

js无揭示弹出窗口

发布时间: 2012-11-23 00:03:43 作者: rapoo

js无提示弹出窗口
经测试ie6,7,8,和ff12都可以使用

 <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>榻惰患Н郴缁</title></head>  <script>  function full_win() {        var height = window.screen.availHeight;        var width = window.screen.availWidth-2;        window.open("b.html", "", "height=" + height + ",width=" + width + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no,top=0,left=0").focus();        window.opener = "";       window.open('', '_self');        window.close();}  </script>  <script language="javascript">full_win();</script>  <body>  <a id ="load" href="javascript:full_win();">loading......</a> </body> </html>    

读书人网 >JavaScript

热点推荐