<legend id='BKZOX'><style id='BKZOX'><dir id='BKZOX'><q id='BKZOX'></q></dir></style></legend>

    1. <tfoot id='BKZOX'></tfoot>

          <bdo id='BKZOX'></bdo><ul id='BKZOX'></ul>

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

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

        JavaScript Popup Chrome“另存为"已停用?为什么?

        时间:2023-10-01

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

                • <tfoot id='J7zoi'></tfoot>
                    <tbody id='J7zoi'></tbody>
                • <legend id='J7zoi'><style id='J7zoi'><dir id='J7zoi'><q id='J7zoi'></q></dir></style></legend>
                • <small id='J7zoi'></small><noframes id='J7zoi'>

                  本文介绍了JavaScript Popup Chrome“另存为"已停用?为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在用 Javascript 打开一个弹出窗口:

                  I am opening an popup in Javascript with:

                  function popup(title,w,h,site) {
                      x = screen.availWidth/2-w/2;
                      y = screen.availHeight/2-h/2;
                  
                      var date = new Date()
                      var ticks = date.getTime();
                  
                      var popupWindow = window.open(
                          title,"popup"+ticks,'width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y+',resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,titlebar=yes,hotkeys=yes,status=yes,dependent=no,location=1');
                      popupWindow.document.write(site);
                      return popupWindow;
                    }
                  

                  当我右键单击新窗口时,另存为"对话框在 chrome 中被停用.

                  When I right click the new window, the "save as"-dialog is deactivated in chrome.

                  如何启用它?我做错了什么?

                  How can I enable it? What am I doing wrong?

                  推荐答案

                  属性 status 应该是 1 而不是 yes.这应该是阻止 Chrome 将弹出窗口视为新窗口的原因.

                  the attribute status should be 1 not yes. This should be what is preventing Chrome from treating the popup as a new window.

                  另外,open() 按以下顺序接受参数:

                  Also, open() takes parameters in this order:

                  window.open(URL,name,specs,replace)
                  

                  那就试试吧:

                  window.open("about:blank", title, 'width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y+'resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,titlebar=yes,hotkeys=yes,status=yes,dependent=no,location=1')
                  

                  这篇关于JavaScript Popup Chrome“另存为"已停用?为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在另一个窗口中检查打开的 URL? 下一篇:使用 Ruby on Rails 的 Ajax 弹出框

                  相关文章

                      <bdo id='YpoIS'></bdo><ul id='YpoIS'></ul>
                      <tfoot id='YpoIS'></tfoot>

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

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