Executing custom JavaScript on specific pages of the site from a single file
<p>my js file loads on all pages. Some functions are meant to run only on certain pages like the homepage only <code>http://site.com</code>. Can javascript read the url of the page it's being called from to determine if it's the homepage?</p>
