JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Intro to JS+prossecingJS
Intro to JS+prossecingJS
More
Share
Explore
Session 3
Interactive programs
Interactive programs
mouseX/mouseY
These variables represent the current coordinates of the mouse.
mouseX
represents the x-coordinate of the mouse
mouseY
represents the y-coordinate of the mouse
Example
Result
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.