Jump to content

Returning the mouse co-ordinates.


MrAdam
 Share

Recommended Posts

Hi people. Im fairly new to javascript. I'm writing a script, could someone please write me a function to return the mouse co-ordinates and store them in 2 variables. So it would go like this:- someone runs the function- the x co-ordinate saved in a variable called "x-co"- the y co-ordinate saved in a variable called "y-co"Thanks alot if you can help..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...