5

Possible Duplicate:
Modifying document.location.hash without page scrolling

I'd like to cancel the event, if possible, but I don't see any precedent for this. Assume for the moment that I'm constrained to using the same string for both my fragment identifier and the name of my anchor. I need to intercept the event and cancel it somehow.

UPDATE: This is a duplicate of Modifying location.hash without page scrolling

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Eric Nguyen
  • 40,312
  • 4
  • 25
  • 31
  • There is some code on here that does it, I'll try and find it :) – alex Jan 11 '11 at 01:54
  • 1
    Possible duplicate of: http://stackoverflow.com/questions/1489624/modifying-document-location-hash-without-page-scrolling – scoffey Jan 11 '11 at 03:51
  • Thanks, scoffey. It is indeed a duplicate of 1489624. I'll add a note to the description. If you know what further steps I should take to mark this as a duplicate, let me know. Thanks! – Eric Nguyen Jan 12 '11 at 04:36

0 Answers0