Results 1 to 3 of 3
Nov 26, 2000, 22:19 #1JulesSitePoint Community Guest
Anyone know how to detect the current position of the window? I want to pop up a new window in exactly the same position.
Nov 27, 2000, 11:53 #2
- Join Date
- Feb 2000
- where the World once stood
- 0 Post(s)
- 0 Thread(s)
window.screen.availTop & window.screen.availLeft provide the respective coordinates of the current window. NN also has innerWidth/outWidth, etc. You would then have to use window.moveTo(x,y) to place the window.
But...if you intend a pop a window in the exact location, what's wrong with a simple: location.href='blahblah'?
Where the World Once Stood
the blades of grass
cut me still
Nov 27, 2000, 17:02 #3JulesSitePoint Community Guest
availTop and availLeft gives you the top left corner of the screen which IS appropriate when the browser is maximised.
If the browser window is floating somewhere on the screen and not maximised (as it is with most people running their res greater than 1024 x 768) availTop and availLeft aren't much help.
I suspect there is no way to get the current cooridinates of a non-maximised browser window.
If you know otherwise you will rock my world!