Hi,
Using jquery, I'd like to get the javascript from an A tag's onClick attribute.
<a href='#' onClick='alert("boo");' />
In Firefox: alert($('a').attr("onClick"))
shows: alert("boo")
In IE 6/7: alert($('a').attr("onClick"))
shows: function anonymous(){alert("boo");return false;}
How can I retrieve just the javascript, and not the wrapped function, in IE 6/7 using jquery? (or plain javascript)?
Franko