 <p><code>Too much recursion</code> means that something is looping over and over again, possibly infinitely. The reason that's happening with your current code is because <code>&lt;a&gt;</code> is a parent of <code>&lt;img&gt;</code>, so any click event on <code>&lt;img&gt;</code> bubble up to the parent <code>&lt;a&gt;</code> (search for "event bubbling" in Google). So your code is basically saying "when someone clicks on <code>&lt;a&gt;</code>, trigger a click on <code>&lt;img&gt;</code> and then <code>&lt;a&gt;</code> (because of event bubbling)" -- which of course causes the code to run again.</p> <p>If the JavaScript plugin already has binded events to clicks on the image, I don't see why you need to bind a click event to the parent <code>&lt;a&gt;</code> that simply clicks on the image. What do you need to happen that isn't already happening when the user clicks on the <code>&lt;img&gt;</code> -- without including your jQuery code?</p>