What is the difference between onClick and mouseClick?

I wonder what the main difference is between the two: onClick and mouseClick ..

0
java events mouse
Nov 12 '09 at 13:00
source share
2 answers

Assuming you're talking about Java, the difference is directly in the documentation for MouseEvent:

Mouse events

* a mouse button is pressed * a mouse button is released * a mouse button is clicked (pressed and released) * the mouse cursor enters the unobscured part of component geometry * the mouse cursor exits the unobscured part of component geometry 

If you are talking about JavaScript, I'm going to assume that this is the difference between the old style and the new event handling style. But I always used onClick, so I can not give a final answer.

0
Nov 12 '09 at 13:05
source share

It looks like you are confusing Java with Javascript. There is no onClick () method in the Java API.

+1
Nov 12 '09 at 13:19
source share



All Articles