I have some jQuery code that is on every web page of the site (in the head element).
What selector syntax can I use to tell jQuery that a certain function should only ru
Maybe check window.location.pathname?
window.location.pathname
if (window.location.pathname == "/path/to/page.html") { callFunction(); }