?
Solved

Find Browser Coordinates on Screen?

Posted on 2003-03-21
1
Medium Priority
?
494 Views
Last Modified: 2012-08-13
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
Comment
Question by:PMH4514
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
cubrovic earned 120 total points
ID: 8181716
You can use
window.screenLeft and window.screenTop    for IE

and

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

0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question