I’d like to load a url with a hashtag and grab it to be used in javascript.
Ie, say you load http://www.url.com/#1, I would like to be able to do something like the following in JS:
var hash_value = get_the_hash_value();
do_something_with(hash_value);
How does one perform something like this?
window.location.hashOops! Your answer couldn’t be submitted because:
body must be at least 30 characters; you entered 22