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

Eclipse formatter for java ending braces -

ruby - Nesting modules inside of a Rails eninge gem -

java - Are there any classes that implement javax.persistence.Parameter<T>? -