I'm trying to figure out a simple script:
If the URL hash is #commercial (like http://domain.com/#commercial) -> then "call a trigger", but I don't really know how to get this started.
Thoughts?
I'm trying to figure out a simple script:
If the URL hash is #commercial (like http://domain.com/#commercial) -> then "call a trigger", but I don't really know how to get this started.
Thoughts?
In JavaScript, you can get the hash value of URL using .hash
:
window.location.hash