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

前端 未结 6 2090
遇见更好的自我
遇见更好的自我 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 16:58

    Works with most of the Mozilla browsers

    Reset
    

    Code Line:

    window.location.href='#'
    or window.location.href=''
    

    The last code will not work properly with IE

提交回复
热议问题