Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the difference between onmouseclick and onclick

Status
Not open for further replies.

inbaron

Programmer
Dec 9, 2002
22
0
0
US
What is the difference between "onclick" and "onmouseclick" event handlers? Do they apply to different objects? Dothey work differently? I am baffled?

Thanks for Help

Shai
 
I've only used "onmouseclick" for graphics objects (such as applets) and languages other than JavaScript... ie capturing mouse system events.

"onclick" is the HTML attribute for capturing mouse clicks on links, images, buttons. Stick with "onclick" when programming HTML/JavaScript.

Pete.


Web Developer & Aptrix / Lotus Workplace Web Content Management (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk
 
In other words, in a web application onmouseclick is the same as onclick does and there is no need for it.

Thanks

Shai
 

> In other words, in a web application onmouseclick is the same as onclick does and there is no need for it.

As far as I can tell, JavaScript has no onMouseClick event, so no - it is not the same as onclick ;o)

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top