Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 245 Bytes
<script>
function do_nothing(x){
alert(x);
return true;
}
function get_href(x){
alert(x.getAttribute('href'));
return 'a';
}
</script>
<a id='x' onClick='javascript: do_nothing( this.getAttribute("href") )' href="asd">asda</a>