12-31-2008 11:15 AM
Hello,
I'm using a Blackberry 9000 with the Hotspot Browser and I'm lokking for a way to get the mouse coordinates when the user clicks somewhere in the document. Something like event.clientX or event.pageX in other browsers...
Thanks in advance,
Marc
Solved! Go to Solution.
12-31-2008 11:44 AM
12-31-2008 12:22 PM
Very fast reply. Thanks!
I found the problem with your hint. The problem are the events:
Works:
<img id="img" src="" onClick="mX=event.clientX;mY=event.clientY;">
Doesn't work:
document.ondblclick= ...;
Doesn't work:
<img id="img" src="" ondblclick="mX=event.clientX;mY=event.clientY;">
Do you know why ondblclick never fires?
Marc
12-31-2008 02:01 PM
01-01-2009 08:16 AM
Yes, i can use a single click.
A last other question:
The Reference says that the "body" tag supports the "onkeypress" events, but this...
<body onkeypress="javascript&colonalert('Hello')">
.. didn't work. I was only able to get the "onkeypress" event in an "input" tag?
Marc
01-01-2009 01:39 PM