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

Written by Junior B.

Recommend
Say Thanks
Update Notifications Off
Respond