I have a link that has a listener attached to it (I\'m using YUI):
YAHOO.util.Event.on(Element, \'click\', function(){ /* some functionality */});
In case anyone bumps into this looking for a framework agnostic way to fire any HTML and Mouse event, have a look here: How to simulate a mouse click using JavaScript?