javascript iframe link referrer

ぃ、小莉子 提交于 2019-12-18 09:24:26

问题


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?


回答1:


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




回答2:


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




回答3:


It will obviously refer to the new domain.



来源:https://stackoverflow.com/questions/2324202/javascript-iframe-link-referrer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!