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:
- do ever need specify 'javascript:' in onclick? (and ie related a's following)
- javascript function in href vs onclick
interesting reads:
Comments
Post a Comment