 <p>You can use <a href="http://api.jquery.com/one/" rel="nofollow"><code>.one()</code></a> for that.</p> <pre><code>$("a").one("click", function() { // do your stuff } </code></pre> <p>Or you could store the fact that the link has already been clicked by adding a <a href="http://api.jquery.com/jQuery.data/" rel="nofollow"><code>.data()</code></a> attribute.</p> <pre><code>$('a').click(function() { var a = $(this); if (a.data('clicked') == 'clicked') return false; // do your stuff a.data('clicked', 'clicked'); }); </code></pre> <p>Whatever you do you should really drop that inline js (for maintainability and clean code).</p>