html - How to call javascript from a href? -


how call javascript href?

like:

<a href="<script type='text/javascript'>script code</script>/">call javascript</a> 

<a onclick="yourfunction(); return false;" href="fallback.html">one way</a>

** edit **
from flurry of comments, i'm sharing resources given/found.

previous q , a's:

interesting reads:


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -