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

Mouse Click Events to objects??

100+
P: 196
Firstly is it possible to send mouse clicks to a certain object on a page?

If so can you give a example of this; i found this code that will send a mouse click to the body-

Expand|Select|Wrap|Line Numbers
  1. document.body.click();
But i need to send a mouse click to a certain object on a page i.e. between 2 <div> tags.

Thanks heaps,
Sep 22 '08 #1
Share this Question
Share on Google+
4 Replies


P: 93
Can you please tell us what you want to do exactly?
If you will tell us what you want to perform we will be ablle to help
you.......
Sep 22 '08 #2

100+
P: 196
Ok i think i found an alternate solution; i was just trying to change the screen when a certain part of the screen was clicked on.


Thanks anyways
Sep 22 '08 #3

P: 93
Anyways If you have the alternate its ok.But If you want to do this then you can see a thing which is a bit complex but interesting.just look ate the things like
Expand|Select|Wrap|Line Numbers
  1. bindAsEventListener(this);this.click ();//where this is the id of the div.
Sep 22 '08 #4

100+
P: 196
Sounds interesting, ill have a look at it.

It looks like im going to be using javascript mabey to send mouse clicks and php to move the mouse lol,

Thanks Heaps ppl :)
Sep 23 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.