get hash from url
snippet in javascript

get hash from url

user2015

window.location.hash = '#hash_value';

get hash js

user6119

location.hash