Is there a simple, universal outbound click tracking method for JQuery / Javascript?
问题 I'm looking for a way of tracking all outbound clicks from a web page using Javascript/ JQuery without modifying any of the existing page code. The solution must work with frames, iframes, content from different domains, AJAX etc. Perhaps, Javascript is the wrong technology for a universal solution. If so, please let me know what would be better. 回答1: It's easy enough to capture all clicks on external links. $(document).ready(function() { $("a[@href^=http]").each(function(){ if(this.href