On this map:
http://web.pacific.edu/documents/marketing/campus-map/version%202/stockton-campus-2.0.htm
I have an anchor on top, and I want the page to jump to the anchor when the link is clicked.
I am currently using
window.location = '#top';
It works in both FF, Opera, and Chrome, but not in IE 7.
I tried all permutations like window.location.hash and window.location.assign (), as well as scrollIntoView (true) and focus ().
How can I make it work in IE?
Edit: nothing works, which makes me think that this is not syntax, but something about JS ... here is the click event handler ... maybe because it returns false? I grab onto a straw.
$('#index a').click(function()
{
hideMarkers();
location.href = location.href + "#top";
var marker = showMarker( $(this).attr('data-id') );
GEvent.trigger( marker, "click" );
return false;
});
: window.location.hash IE7 IE8 , HTTP "Location". , Javascript, . . .
user131969