function opennewwin(Hei,Wid,URL,str),代替传统的window.open函数。实现:1避免被当成弹出窗口而阻止。2无最大化按钮。3无状态栏、工具栏、菜单栏等。4无右键功能。
求大侠们帮帮忙!!!

解决方案 »

  1.   

    1,如果是用户点按钮才弹出是不会被阻止的
    2、3 这个可以设置 window.open 的参数来实现
    4、必须是在所打开的网页代码中才能处理。ps.为何不用 window.ShowModalDialog,基本符合你的要求,只不过是模态窗口
      

  2.   

    只是想包装而已,请 window.open 的参数描述1避免被当成弹出窗口而阻止
    -------
    程序无法控制,只有客户端自己权限控制
      

  3.   

    window.ShowModalDialog(URL,str,'dialogWidth='+Wid+'px;dialogHeight='+Hei+'px;status=no;')
      

  4.   

    window.open=function opennewwin(sdf,sdf,sdf){ ....}
    可以不?
      

  5.   

    还是给你贴吧~1.
    // 打开新窗口
    function openWin(url, width, height, top, left, winName){
        // 设置默认值
        winName = (winName == null) ? "" : winName;
        top = (top == null) ? 0 : top;
        left = (left == null) ? 0 : left;
        width = (width == null) ? 300 : width;
        height = (height == null) ? 400 : width;      
        // 可以将你需要的窗口特性改为 yes
        var newWin = window.open(url, winName,"top=" + top + ",left=" + left + ",  toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=" + width + ",height=" + height);
        if(newWin) newWin.focus();
        return false;
    }2. 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>Untitled Page</title>
        <script type="text/javascript">
        document.oncontextmenu = function() { alert("注释我吧,实现右键屏蔽^_^"); return false; }
        </script>
    </head>
    <body>
    右键屏蔽
    </body>
    </html>
    Good Luck!