在 Microsoft Edge 中使用 window.open 打开一个新窗口不起作用 [英] Opening a new window using window.open in Microsoft Edge isn't working
问题描述
当使用 window.open 和下面给定的代码时,在关闭窗口、最小化窗口和最大化窗口时会出现问题.
When using window.open with below given code, there is issue in closing the Window, Minimizing the window, and maximizing the window.
window.open(url, '_blank', "height=" + winH + ",width=" + winW + ",fullscreen=yes");
按下win+D
(最小化所有窗口)后,只打开新窗口,上面提到的按钮(最小化、最大化、关闭)起作用了.
After pressing win+D
(minimizing all windows), and opening only the new window, the above mentioned buttons (Minimize, Maximize, Close) were working.
推荐答案
在 Build 10162 上,我在这个 JSFiddle http://jsfiddle.net/RamiSarieddine/wu09fh1d/
On Build 10162, I got it working here on this JSFiddle http://jsfiddle.net/RamiSarieddine/wu09fh1d/
window.open("http://dev.modern.ie/community/","_blank","height=500,width=500,scrollbars=yes,location=yes");
您可以看到高度为 500、宽度为 300 且带有滚动条、最小最大化和关闭按钮的窗口打开.检查下面的屏幕截图.
you can see the window opening with height 500, width 300 with a scroll bar, mini-maximize and close button. Check the screenshot below.
这篇关于在 Microsoft Edge 中使用 window.open 打开一个新窗口不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!