Last Updated: February 25, 2016
·
4.514K
· 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;"