I cannot get window.location.hash = location.hash to work in Safari.
I use javascript to wrap the contents of my page with a scrollable DIV, located under the navigation bar on my web page. Since the scrollbar location gets reset when javascript starts up, I lose the original hash location that sets the URL. I need to re-specify the hash location without reloading the page using javascript, so I use window.location.hash = location.hash . It works in IE8, Firefox, and Opera, but it does not work in Safari. (I will also consider Chrome, but I have not tested it). Any suggestions?
Hint: I like jQuery.
Brandon lebedev
source share