Implement it yourself: function onhashchange(){ //do stuff };
$('a').click(function(){ if (this.href.indexOf('#')+1) onhashchange(); }); - ricardo On Sep 24, 5:33 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote: > I think he's looking for something more along the lines of IE8's > "onhashchange" event[1]. Unfortunately, this is something that, to my > knowledge, no other browser implements. > [1]http://msdn.microsoft.com/en-us/library/cc288209(VS.85).aspx > > On Wed, Sep 24, 2008 at 3:27 PM, Andy Matthews <[EMAIL PROTECTED]>wrote: > > > > > > > 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? > > -- > Aaron Heimlich > Web Developer > [EMAIL PROTECTED]