?
Solved

Do window.open at mouse cursor, help!!

Posted on 2003-02-27
2
Medium Priority
?
235 Views
Last Modified: 2006-11-17
I need to have a popup window display at the mouse pointer, this won't work!

var mouseX = event.clientX;
var mouseY = event.clientY;

gWinCal = window.open("", "Test","width=250,height=240,status=no,resizable=no,top=mouseX,left=mouseY");

So how do I get the top left corner of the popup be right at the mouse pointer?  Thanks.
0
Comment
Question by:lelo
[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
2 Comments
 
LVL 7

Accepted Solution

by:
cubrovic earned 300 total points
ID: 8035454
try like this

gWinCal = window.open("", "Test","width=250,height=240,status=no,resizable=no,top="+mouseX+",left="+mouseY+"");

0
 

Author Comment

by:lelo
ID: 8035626
I feel dumb now, but thanks, you're the man!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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

752 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