Mar 1, 2004 #1 inbaron Programmer Joined Dec 9, 2002 Messages 22 Location 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
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
Mar 1, 2004 #2 WartookMan Technical User Joined Nov 24, 2003 Messages 346 Location AU 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: http://www.lclimited.co.uk/e: Pete.Raleigh(at)lclimited.co.uk Upvote 0 Downvote
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: http://www.lclimited.co.uk/e: Pete.Raleigh(at)lclimited.co.uk
Mar 1, 2004 Thread starter #3 inbaron Programmer Joined Dec 9, 2002 Messages 22 Location US In other words, in a web application onmouseclick is the same as onclick does and there is no need for it. Thanks Shai Upvote 0 Downvote
In other words, in a web application onmouseclick is the same as onclick does and there is no need for it. Thanks Shai
Mar 2, 2004 #4 BillyRayPreachersSon Programmer Joined Dec 8, 2003 Messages 17,047 Location GB > 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 Upvote 0 Downvote
> 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
Mar 2, 2004 #5 adam0101 Programmer Joined Jun 25, 2002 Messages 1,952 Location US Here's a list of events IE supports, no mention of onmouseclick: http://msdn.microsoft.com/library/d.../author/dhtml/reference/events.asp?frame=true Adam while(ignorance){perpetuate(violence,fear,hatred);life=life-1}; Upvote 0 Downvote
Here's a list of events IE supports, no mention of onmouseclick: http://msdn.microsoft.com/library/d.../author/dhtml/reference/events.asp?frame=true Adam while(ignorance){perpetuate(violence,fear,hatred);life=life-1};