PDA

View Full Version : Multiple monitors with child window



jamespbyrne
06-16-2008, 09:05 PM
Is there a way with jscript to open a new window, either child window or pop-up window on a secondary display. I am working on a application and this would really help me out. Thanks in advance for your help.

Nile
06-17-2008, 03:33 AM
Do you mean to open the window in back of the window the parent window?

jscheuer1
06-17-2008, 05:40 AM
It's been awhile since I worked with multiple monitors. As I recall, there are two ways (perhaps more) this can be set up:


You can have two monitors, each showing the same thing.
You can have two monitors, the second of which represents an extension of your screen or 'desktop' area.


If it's the second case, since you can open a window anywhere on the desktop, I would think you could open one on the extended portion of the desktop that is visible on the second monitor.

Also, if I remember correctly, you can (virtually) put the second monitor either 'on top' (above) the current or primary monitor, or to the left of it. Once there, you can drag windows over to it. If it were to the left, and - say your primary screen were 1024 pixels wide, you would be able to do:


window.open('some.htm','m2','top:0, left:1050');

and it should open a window on the second monitor.