Is it possible to trigger a javascript to run when a particular anchor is selected?
Posted
by brad
on Stack Overflow
See other posts from Stack Overflow
or by brad
Published on 2010-03-29T03:13:02Z
Indexed on
2010/03/29
3:23 UTC
Read the original article
Hit count: 414
Say I have an anchor on a webpage like so:
<a name="comegetit"></a>
Is there a way of running a javascript if the page is arrived at by a link that lands on this anchor? (e.g. a link like <a href="http://myawesomewebpage.com/page#comegetit"></a>
). I don't think there is but I would like there to be.
© Stack Overflow or respective owner