• Home

CodingExperiments.com

$ sudo make money

Search

Category:

  • Apple Inc.
  • Facts
  • Fun
  • Google
  • Google Android
  • Ideas
  • Internet
  • Linux
  • Microsoft
  • Programming
  • Rants
  • Security
  • Uncategorized
  • web 2.0

Archives:

  • April 2010
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007

Pages

  • About
  • About
    • The Authors
  • Commenting your code
  • How to Write Papers with Groff
  • ModCMS Anti-Spam Component Set
  • ModCMS Technical Specifications
  • Regular Expressions Guessing Game
  • Saving code directly to a web server
  • The (Almost) Perfect PHP 404 Page

Meta:

  • RSS
  • Comments RSS

Awesomeness tracker

CodingExperiments at Blogged View blog authority
Free Page Rank Tool

onMouseOut event handler activated on child elements

March 6th, 2008 by Rishabh Mishra

Javascript can sometimes go against logic, my logic, at least. When I was using the Javascript onMouseOut event handler on a DIV tag for a friend’s site, I was surprised to see that the onMouseOut event was activated when the mouse moved over a child element.

Now, I would think that the child element is still in the parent element with the onMouseOut event handler. By that logic, the event handler should not be activated. However, this is default behavior for browsers.

Luckily, there is a quick fix at this CodeHead forums.


Posted in Uncategorized | View Comments

  • Voyagerfan5761
    There's another discussion of the problem at http://www.webdeveloper.com/forum/showthread.ph...

    QuirksMode.org also has a bunch of info; a good starting point is http://www.quirksmode.org/js/events_mouse.html#...
blog comments powered by Disqus

 
Wordpress Themes by and Website Templates by Blogcut Blogged Blog Directory Blog Directory - Blogged