1

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?

JAAulde
  • 19,250
  • 5
  • 52
  • 63
Stephanie
  • 65
  • 12

1 Answers1

3

In JavaScript, you can get the hash value of URL using .hash:

window.location.hash
hjpotter92
  • 78,589
  • 36
  • 144
  • 183