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
  • 18,787
  • 5
  • 52
  • 61
Stephanie
  • 65
  • 12

1 Answers1

3

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

window.location.hash
hjpotter92
  • 75,209
  • 33
  • 136
  • 171