• <bdo id='kJeH3'></bdo><ul id='kJeH3'></ul>
    <legend id='kJeH3'><style id='kJeH3'><dir id='kJeH3'><q id='kJeH3'></q></dir></style></legend>
    1. <i id='kJeH3'><tr id='kJeH3'><dt id='kJeH3'><q id='kJeH3'><span id='kJeH3'><b id='kJeH3'><form id='kJeH3'><ins id='kJeH3'></ins><ul id='kJeH3'></ul><sub id='kJeH3'></sub></form><legend id='kJeH3'></legend><bdo id='kJeH3'><pre id='kJeH3'><center id='kJeH3'></center></pre></bdo></b><th id='kJeH3'></th></span></q></dt></tr></i><div id='kJeH3'><tfoot id='kJeH3'></tfoot><dl id='kJeH3'><fieldset id='kJeH3'></fieldset></dl></div>

      <small id='kJeH3'></small><noframes id='kJeH3'>

      <tfoot id='kJeH3'></tfoot>

      1. Javascript window.open 被 IE 弹出窗口阻止程序阻止

        时间:2023-10-01
          <tbody id='Pdx40'></tbody>

            • <bdo id='Pdx40'></bdo><ul id='Pdx40'></ul>
              <legend id='Pdx40'><style id='Pdx40'><dir id='Pdx40'><q id='Pdx40'></q></dir></style></legend>
            • <tfoot id='Pdx40'></tfoot>
            • <small id='Pdx40'></small><noframes id='Pdx40'>

              <i id='Pdx40'><tr id='Pdx40'><dt id='Pdx40'><q id='Pdx40'><span id='Pdx40'><b id='Pdx40'><form id='Pdx40'><ins id='Pdx40'></ins><ul id='Pdx40'></ul><sub id='Pdx40'></sub></form><legend id='Pdx40'></legend><bdo id='Pdx40'><pre id='Pdx40'><center id='Pdx40'></center></pre></bdo></b><th id='Pdx40'></th></span></q></dt></tr></i><div id='Pdx40'><tfoot id='Pdx40'></tfoot><dl id='Pdx40'><fieldset id='Pdx40'></fieldset></dl></div>

                  本文介绍了Javascript window.open 被 IE 弹出窗口阻止程序阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Can anyone help, I have a popup that is being blocked. It is a popup that is created because somebody has clicked on a Print picture on my site.

                  I thought IE is not supposed to block these when the popup came via an onclick?

                  Can anyone help? The child1 variable is always returned as NULL if popup blocker enabled...

                  Maybe the problem is that the onclick event then passes control to a new function which loads a html file and does child.document.write

                  Here is my simple code..

                  var width = 800;
                  var height = 600;
                  var left = parseInt((screen.availWidth / 2) - (width / 2));
                  var top = parseInt((screen.availHeight / 2) - (height / 2));
                  var windowFeatures = "width=" + width + ",height=" + height 
                     + ",menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,left=" 
                     + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;      
                  
                  child1 = window.open("about:blank", "subWind", windowFeatures);
                  

                  解决方案

                  The problem will be that open will only return a reference to the window if you are navigating to somewhere within your current host. You are navigating to about:blank which is not within your host.

                  Try adding a blank.htm file to your site and open that instead. I'm still not sure that document.write will be allowed the document won't be open for write, you may be able to manipulate the DOM of the existing blank document though.

                  这篇关于Javascript window.open 被 IE 弹出窗口阻止程序阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何个性化警报按钮 - window.confirm() 和 window.alert() 下一篇:如何使用`window.open`显示模式弹出窗口?

                  相关文章

                  <small id='QaA7E'></small><noframes id='QaA7E'>

                  <i id='QaA7E'><tr id='QaA7E'><dt id='QaA7E'><q id='QaA7E'><span id='QaA7E'><b id='QaA7E'><form id='QaA7E'><ins id='QaA7E'></ins><ul id='QaA7E'></ul><sub id='QaA7E'></sub></form><legend id='QaA7E'></legend><bdo id='QaA7E'><pre id='QaA7E'><center id='QaA7E'></center></pre></bdo></b><th id='QaA7E'></th></span></q></dt></tr></i><div id='QaA7E'><tfoot id='QaA7E'></tfoot><dl id='QaA7E'><fieldset id='QaA7E'></fieldset></dl></div>
                  • <bdo id='QaA7E'></bdo><ul id='QaA7E'></ul>
                • <tfoot id='QaA7E'></tfoot>

                    1. <legend id='QaA7E'><style id='QaA7E'><dir id='QaA7E'><q id='QaA7E'></q></dir></style></legend>