Do window.open at mouse cursor, help!!

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.
leloAsked:
Who is Participating?
 
cubrovicConnect With a Mentor Commented:
try like this

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

0
 
leloAuthor Commented:
I feel dumb now, but thanks, you're the man!
0
All Courses

From novice to tech pro — start learning today.