> You might try the focus event. Active is a CSS thing (like hover), where as > the DOM events that correspond are focus and mouseover.
An element might not get focus before it goes active. Also, mouseover
wouldn't have any effect on active status.
I think this is a pretty simple port of :active to JS (compare the two
links, also note diffs between Gecko + Webkit):
http://jsfiddle.net/sanford/MAhAh/4/
-- S.
