IE has empty document.referrer after a location.replace

前端 未结 3 1355
眼角桃花
眼角桃花 2020-12-01 09:31

I\'ve got a site that does a complex search and has a \"loading\" page. On the loading page we use:

3条回答
  •  無奈伤痛
    2020-12-01 10:12

    Based on Matt answer this code snippet also detects IE11 and opens url in new tab. On Microsoft Edge browser no additional changes are required to pass document.referrer with window.location.replace.

    
    

提交回复
热议问题