Last Updated: February 25, 2016
·
5.167K
· bontojr

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;"