i am making a bookmarklet in the bookmarklet i am adding a iframe to the page's body.
i need to find the current mouse position to position the iframe accordingly.
The issue is. i cannot bind on click for the bookmarklet because by the time the script within the href="javascript:"
runs the click was already done. so i cannot get the event there.
i thought of binding mousemove
, but that's a ugly workaround.
so is there a way to get mouse's current x/y ? without an event firing ?
Thanks.