Javascript how can I trigger an event that was prevented

Posted by Mike Robinson on Stack Overflow See other posts from Stack Overflow or by Mike Robinson
Published on 2010-04-30T21:25:42Z Indexed on 2010/04/30 21:27 UTC
Read the original article Hit count: 241

Filed under:
|

In my app a user clicks a link to another page. I'd like to track that in Omniture with a custom event, so I've bound the omniture s.t() event to the click event. How can I make certain the event fires before the next page is requested?

I've considered event.preventDefault() on the click event of the link, but I actually want the original event to occur, just not immediately.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about omniture