2
我想要做的是更改窗口的大小並在窗口旁邊創建一個窗口,以使它們緊密相鄰。在這個意義上,我需要定位到新的窗口到屏幕的右上部分,我做的方式是不工作(代碼如下),我需要幫助:)如何將彈出窗口放置在屏幕的右上角
function() {
var viewportwidth = document.documentElement.clientWidth;
var viewportheight = document.documentElement.clientHeight;
window.resizeBy(-300,0);
window.open("something.htm",
"mywindow",
"width=300,
height=viewportheight,
left=(viewportwidth - 300),
top=0,
screenX=0,
screenY=0");
}