javascript apply #hash to all links

Posted by MB on Stack Overflow See other posts from Stack Overflow or by MB
Published on 2010-06-09T15:31:04Z Indexed on 2010/06/09 15:32 UTC
Read the original article Hit count: 101

Filed under:
|
|

How can I append #somehash to all links on a page without depending on a JS framework?

Or is it possible to catch when someone clicks on a link and attach #somehash?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about hyperlinks