Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

168
Views
how do you click where the mouse is with javascript

This is what I have so far:

for(var i;i< 99999;i++){
  if(mouse.x == element.x,mouse.y == element.y){
    element.click
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

use window.mouseover to listen the mouse event

var item;
window.addEventListener("mouseover", function( event ) {
  // the mouseover target
  item = event.target;
}, false);

// now you can use the item
about 4 years ago · Juan Pablo Isaza Report

0

window.addEventListener("click", spawn);

function spawn(e){
  console.log(e.clientX);
  console.log(e.clientY);
}

click anywhere in the window...

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!