When a user clicks on a link, I need to update a field in a database and then open the requested link in a new window. The update is no problem, but I don\'t know how to op
This is how I do it with jQuery. I have a class for each link that I want to be opened in new window.
$(function(){ $(".external").click(function(e) { e.preventDefault(); window.open(this.href); }); });