jquery attr("onClick") - ie and ff
<p>Using jquery, I'd like to get the javascript from an A tag's onClick attribute.</p>

<pre><code>&lt;a href='#' onClick='alert("boo");' /&gt;
</code></pre>

<p>In Firefox: <code>alert($('a').attr("onClick"))</code> shows: <code>alert("boo")</code></p>

<p>In IE 6/7: <code>alert($('a').attr("onClick"))</code> shows: <code>function anonymous(){alert("boo");return false;}</code></p>

<p>How can I retrieve just the javascript, and not the wrapped function, in IE 6/7 using jquery?  (or plain javascript)?</p>

<p>Franko</p>
