Jump to anchor with onClick
Workaround to jump to a given anchor using javascript.
onclick="document.location=document.location.toString().split('#')[0]+'#my-item';return false;"
Written by Junior B.
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Anchor
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#