IE has empty document.referrer after a location.replace

I've got a site that does a complex search and has a "loading" page. On the loading page we use: `` Or: `` The only difference between the two option above are that location.replace() ignores the page in the browser's history. On the results_page I need to read the referrer for tracking purposes: `` This works fine on all browsers except IE, which returns and empty value for `document.referrer`. Anyone know a better way to do a javascript redirect that will give IE a value for the referrer? p.s. This example has been made much more simple than it would be in production.
What happens in IE when you set the url to window.location like this: window.location= 'results_page.php'?

以上就是IE has empty document.referrer after a location.replace的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准