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

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -