views:

50

answers:

1

According to XHTML 1.0 transitional events handlers should be paired. I.e the event handler onmouseout should be paired with onblur. How can I do that?

+2  A: 

I'm not sure what this has to do with CSS specifically, so your title is a little confusing. You can pair event handlers in an HTML element by assigning JavaScript handlers for both events. Normally you see onmouseover paired with onmouseout, and onFocus paired with onBlur. See the onmouseout Event example at w3schools.com. The two event handlers are paired in the tag

<a href="http://www.w3schools.com" target="_blank" onmouseover="mouseOver()" onmouseout="mouseOut()">
Bill the Lizard