||View All MessagesBack to WebFX|
Great, man. Thanks a lot.
From: Erik Arvidsson
Sent: March 5, 2004
Subject: Re:Poping up a window next to the cursor
Use event screenX and event screenY
<a href="foo.html" onclick="window.open( this.href, '', 'left=' + (event.screenX - 30) + ',top=' + (event.screenY - 40) + ',width=200,height=200' ); return false;">Foo</a>
I want to pop up a browser window but be able to set the position of it, say, 30 pixels left and 40 pixels above the mouse cursor. I'd like to be able to set these preferences within the link, such as:
Does anyone here have something like this already scripted?