[removed] How to truly reload a site with an anchor tag?

前端 未结 6 2100
遇见更好的自我
遇见更好的自我 2020-12-15 16:27

Take this code snippet for example:

window.location.href = \'mysite.htm#images\';

Already being on the site mysite.htm and tri

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-15 17:09

    After you set the specified URL into location, issue window.location.reload(true). This will force browser to reload the page.

提交回复
热议问题