Is it possible to determine where a pop up is spawned in relation to the browser window? e.g. left, right, top, etc. etc.
I know I can set the size, scrollbars etc
I use the following to open the window:
javascript:(function(){window.open('http://myurl.com/mypage.html')})()
This pop up is spawned from the bookmarks toolbar, therefore a link
This is the method syntax:
For position use the
leftandtopparameters, so it will be something like this:The
left,top,width,heightare in pixels.Look at this link for more info:
https://developer.mozilla.org/en-US/docs/DOM/window.open