By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,364 Members | 1,521 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,364 IT Pros & Developers. It's quick & easy.

Javascript function to 'click', can it be done?

P: n/a
Hi, is there a javascript function which tells the mouse pointer to
"click" whereever it is on the screen? Best regards-sunnysails

Jun 12 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
su********@gmail.com writes:
Hi, is there a javascript function which tells the mouse pointer to
"click" whereever it is on the screen? Best regards-sunnysails


Not really. You might be able to find the mouse position by tracking
mousemove events, and the find the element at that point and try
to call a "click" method on the element, if it has one.

Why would you want it? Hopefully not to bypass popup filters :)

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jun 12 '06 #2

P: n/a

Lasse Reichstein Nielsen wrote:
su********@gmail.com writes:
Hi, is there a javascript function which tells the mouse pointer to
"click" whereever it is on the screen? Best regards-sunnysails


Not really. You might be able to find the mouse position by tracking
mousemove events, and the find the element at that point and try
to call a "click" method on the element, if it has one.

Why would you want it? Hopefully not to bypass popup filters :)

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'


Interesting exploit, but no. I am working with a tricky graphic-app
that is tracking the mouse-cursor, and needed it to do something. I
got it to work now. :)

Jun 12 '06 #3

P: n/a

Lasse Reichstein Nielsen wrote:
su********@gmail.com writes:
Hi, is there a javascript function which tells the mouse pointer to
"click" whereever it is on the screen? Best regards-sunnysails


Not really. You might be able to find the mouse position by tracking
mousemove events, and the find the element at that point and try
to call a "click" method on the element, if it has one.

Why would you want it? Hopefully not to bypass popup filters :)

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'


Sorry I didn't realize the ramifications of the quesiton I was asking.
:() Actually, this is a machine app which uses some HTML. I got it to
work that way I wanted it to. :) -sunnysails

Jun 12 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.