Javascript has the built in property location.hash that will return the
value of the anchor along with the # sign.


andy

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mario
Sent: Wednesday, September 24, 2008 3:09 PM
To: jQuery (English)
Subject: [jQuery] Listen for location anchor change?


Hi,

I was just wondering if there is anyway to listen for changes on the
location bar when a link sets an anchor on the same page.

Example:

current location: www.something.com/

I click on a link and it takes me to:

www.something.com/#someanchor

Is there anyway to listen for this change/event with jquery?


Reply via email to