Kevin B was great enough to provide the code below, which intercepts a link, activates an .asp counter file, and then continues opening the link. How could I modify the code so that it opens the link in a new window?
- $(document).ready(function() {
$('#video').click(function(event) {
event.preventDefault();// prevent default action
var clickedel = this;
// log click
$.get("video-counter.asp?file=video/index.html").always(function(){
// logging done, redirect to file
location.href = clickedel.href
});
});
});
Thanks!
Micky