开发者

How to open popup window outside screen coordinates in Javascript

开发者 https://www.devze.com 2023-02-27 00:09 出处:网络
I have multiple monitors in my system. My application is opened on the first monitor. When the user clicks an icon I would like to open popup window on the second monitor.

I have multiple monitors in my system. My application is opened on the first monitor. When the user clicks an icon I would like to open popup window on the second monitor.

e.g.

window.open(...."left=1500,top=400"...)

it w开发者_StackOverflowon't work, it always open my window in the first monitor - in the parent monitor.

Any ideas? Thanks Gilgol.


Could you not open the window with the default co-ordinates, and then within the page that you're opening, set the co-ordinates of the window to the second monitor?

window.onload = function()
{
    self.moveTo(1500, 400);
};
0

精彩评论

暂无评论...
验证码 换一张
取 消