Javascript to Simulate Mouse Click At Coordinates X,Y

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
dickey
Forum Commoner
Posts: 50
Joined: Thu May 16, 2002 8:04 pm
Location: Sydney, Australia

Javascript to Simulate Mouse Click At Coordinates X,Y

Post by dickey »

Hello All,

I would like to execute a Javascript that simulates a single mouse click at a set of coordinates X,Y.

I am not interested in determining the coordinates of a control or image clicked by a user (which is very well documented).

I would be grateful for any assistance.

Kind regards, Andrew
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Javascript to Simulate Mouse Click At Coordinates X,Y

Post by Darhazer »

dickey
Forum Commoner
Posts: 50
Joined: Thu May 16, 2002 8:04 pm
Location: Sydney, Australia

Re: Javascript to Simulate Mouse Click At Coordinates X,Y

Post by dickey »

Thanks Darhazer,

That technique worked well, again thanks.

Kind regards, Andrew
webadmin40
Forum Newbie
Posts: 5
Joined: Wed Jul 21, 2010 4:07 am

Re: Javascript to Simulate Mouse Click At Coordinates X,Y

Post by webadmin40 »

JavaScript is a really powerful tool for Web design. There are many events in JavaScript to execute this functionality. some of them include mouseclick(), keypress() etc etc. There can be numerous methods to do the same but the shortest one can be by using a function in java to get the co-ordinates at a point. i hope this information is of some use.
Post Reply