On Oct 16, 3:27 pm, "egg...@gmail.com" <egg...@gmail.comwrote:
On my page I have links like this:
<a href="#files/home.html"><img id="home" src="images/home.png"
alt="Home" width="36" height="10" /></a>
which will append "#files/home.html" to the URL in the browser. I need
to figure out how to detect this event.
How can I detect if the client clicks on a link like <a
href="#files/home.html">?
Onload of the page, you check the Hash property.
window.onload = checkIt
function checkIt(){
//check the URL of the current page
}
Now, open your page, click one of your links, then click another one.
Unless you are careful and watch for it, you will end up with a
malformed URL that has two #'s in it.
--
Randy