Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grabbing mouse coordinates for link

Status
Not open for further replies.

Luongo1

Programmer
Oct 13, 2006
52
CA
Hi,

I'm working on a project in which I'd like the user's click coordinates to be passed in a link, which will be loaded onClick (ie - page.php?x=100&y=200. I've seen a few different scripts using coordinates for different puposes, but somehow just can't get them to simply show up in the link. I'm a beginner so I'm having some difficulty with it.... Any help would be appreciated... thanks...
 
Do you want the co-ordinates relative to:

- The screen
- The page
- The element that is clicked

?

Not sure if it's any use or not... but an input with type of "image" gives you these as standard.

Hope this helps,
Dan





Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hi Dan, wow... I was not aware of this feature of the image input - looks like it could be what I'm looking for. Thanks for pointing it out...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top