wondering what is the major difference between these two: onClick and mouseClick..
A:
Assuming that you're talking about Java, the difference is right there 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's geometry * the mouse cursor exits the unobscured part of component's geometry
If you're talking about JavaScript, I'm going to assume that it's the difference between old style and new style event handling. But I've only ever used onClick, so can't give a definitive answer.
kdgregory
2009-11-12 13:05:39
+1
A:
Looks like you are confusing Java with Javascript. There is not onClick() method on Java APIs.
JuanZe
2009-11-12 13:19:18