javascript iframe link referrer

2020-02-14 20:08发布

A page loads another domain in an iframe. If javascript inside the iframe clicks on a link in the iframe which domain will the referrer be?

3条回答
相关推荐>>
2楼-- · 2020-02-14 20:47

Referer will be the page on which the link is clicked. In your case, it will be domain that is opened in iframe.

查看更多
家丑人穷心不美
3楼-- · 2020-02-14 20:58

Unless it's IE6 - then it's the original page - strange? Ohh yes

查看更多
迷人小祖宗
4楼-- · 2020-02-14 21:04

It will obviously refer to the new domain.

查看更多
登录 后发表回答