[removed] = #anchor doesn't work in IE

前端 未结 6 539
南笙
南笙 2020-12-10 09:24

On this map:

http://web.pacific.edu/documents/marketing/campus-map/version%202/stockton-campus-2.0.htm

I have an anchor at the top, and I want the page to ju

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 09:53

    window.location.href = '#top';
    

    And if this doesn't work, try the full URL

    window.location.href = 'http://domain.com/my.html#top';
    

提交回复
热议问题