Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 497
  • Last Modified:

Find Browser Coordinates on Screen?

Hi - I need a IE6/NS6 javascript function to determine the coordinates on the user's browser on their monitor.. I can get screen.width for example to say 1600 when I'm in 1600x1200 mode.. I can determine the width/height of the viewable area within the browser with no problem, but I can't find the way to determine where on the user's display the browser is..

(I'm trying to write a popup function so the pop-up opens centered within the user's browser - not centered on their screen..  if I can get the coordinates of the browser on the screen I'll be all set.

thanks
0
PMH4514
Asked:
PMH4514
1 Solution
 
cubrovicCommented:
You can use
window.screenLeft and window.screenTop    for IE

and

window.screen.left and window.screen.top for NS6

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now