@skisbyAug 07.2006 — #The solution for FireFox is to include the script or call the script following all # name references.
In IE 6 the script will work if placed anywhere on the HTML page, presumably because the scrip executes after the page has loaded or loads until the # name reference is found. However in FireFox (version 1.5.0.6) it can't find the # name reference (but will display the # name reference in the location bar) if location, window.location, window.location.href, window.location.replace, location.replace, window.location.assign, or self.location is executed in the HTML before the # name reference.
Note that window.navigate only works in IE.
My application was on a simple calendar page where, if JavaScript is enabled, I wanted to jump to the current month's listings. My implementation can be found at http://www.wreckbeach.org/calender.html