当前位置:首页 > Windows程序 > 正文

多个显示器, window.open的定位

2021-03-21 Windows程序

function openWin(sURL, sWindowName, w, h, sScroll) { var x = (window.screenX || window.screenLeft || 0) + (screen.width - w) / 2; var y = (window.screenY || window.screenTop || 0) + (screen.height - h) / 2; if (sScroll==null) sScroll = "no";//"yes" or no var sOption = ""; sOption = sOption + "toolbar=no, channelmode=no, location=no, directories=no, resizable=yes, menubar=no"; sOption = sOption + ", scrollbars=" + sScroll + ", left=" + x + ", top=" + y + ",," title="多个显示器, window.open的定位,mamicode.com" target="_blank">多个显示器, window.open的定位

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/64889.html