i\'ve got a page (asp.net) where I trap the click event of a link. i then do some dirty checking and present a dialog to the user,
$(function() {
var c
you can use the trigger function, Change:
$(clickedLink).click();
to
$(clickedLink).trigger("click");
A better way would be to separate your click functionality out into a separate function and call this, however the above will work.
.click()
only fires the event handlers for onclick
, it doesn't actually make the default action of following the link happen. Probably the quickest method is just to do that manually:
window.location= clickedLink.href;
PS. “lose”