I have all my javascript code for i project in a single minified library.
There are some functions that run only for specific page urls, but when a link that does not have its href attribute and instead has an element id its href attribute is clicked, and the page is refreshed, the function does not run.
Any idea what the problem is?
For example;
it work when the url is http://localhost/pheedbak/users/home
but when the url changes to http://localhost/pheedbak/users/home#directed-pheeds, the function doesn't run
The code is something like this
url = "http://localhost/pheedbak/users/home";
if(window.location.href == url)
{
pheeds.LoadLatestPheeds();
}
hrefattribute?