Newbie Question - Events on Link clicks
So, i have been tracking jquery for a while, but I figured I would finally dive in and try it out myself.
I have the following situation:
I have a web analytics tool that tracks HTML page loads. But, any click that is not to an HTML page is not tracked. I would love to have something that basically calls a JS function systematically whenever links with specific extensions are loaded, or right clicked (think PDF, right click to save locally). Ideally, the list of extensions would be easy to control. Eventually, I would love to expand this out into other events, such as link hover overs etc, but that's not required at this point.
Can anybody point me in the right direction?