Using jQuery, I set a link tag\'s click handler like this:
$(\'#lnk\').click(handleClick);
handleClick does something like this:
Use Function.apply and pass in the DOM element returned by the query.
handleClick.apply($('#lnk')[0]);
Or better yet, let jQuery simulate a click on the element (Assuming you've already attached the click event handler).
$('#lnk').click();