I have a website that I've been building off of a template. It uses buttons that scroll down the page with hashes, but the hashes aren't displayed in the URL in the address bar.
I want to know what code I could use in javascript to retrieve the hash of the section of the page that's currently being viewed. I've already tried:
window.location.hash
document.location.hash
location.hash
But these all return undefined.
Is there a way to unhide the hash in the address bar? Or to retrieve it internally somehow?
The template I'm using can be found here: http://quickwebresources.com/demo/portfolio/