I’m a bit of a Javascript newb here, so I’d appreciate any help I could get.
What I’m trying to do is this: The website I’m working on has numerous pop-up windows that are often open all at once and as such specifically placed around the screen by the user. Now I’m trying to implement a feature where the positions of each window are saved upon closing in a database and are used when the window is next opened.
But I’ve run into this problem regarding users with multiple monitors. Yes, I can open a window at (1200,0), thus placing it on the user’s second monitor. But what if (s)he unplugs the second monitor before returning? Then the pop-up appears well off the screen (assuming a 1024×768 resolution). Is there someway I can detect whether the point (1200,0) is a valid location on a screen, so I can revert the pop-up window’s location to some sort of default if it isn’t?