SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast ro88o's Avatar
    Join Date
    Jun 2006
    Location
    Manchester, UK
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting mouse co-ordinates from a user double click [SOLVED]

    Hi all,

    I need to get the co-ordinates of the mouse in relation to my whole web page (i.e they could be scrolled right down to the bottom of the page so the Y co-ordinate may be 1467px) when the user double clicks anywhere on the page - is this possible to do in a cross-browser compatible way in Javascript?

    I'm currently tracking double clicks in my body tag but I'm getting conflicting information (and code snippets) in Google on whether it's possible for to get the mouse co-ordinates of this double click.

    Thanks in advance,
    Tom
    www.nubornis.com
    Web Development from Nuborn Internet Services

  2. #2
    SitePoint Enthusiast ro88o's Avatar
    Join Date
    Jun 2006
    Location
    Manchester, UK
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm, after going back to an example I took from quirksmode I seemed to have sorted it - never mind!
    www.nubornis.com
    Web Development from Nuborn Internet Services


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •