隐藏iframe上的引用 [英] Hide referrer on iframe
本文介绍了隐藏iframe上的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用iframe时可以移除引用者吗?
here case:
我在 http:// www。 mywebsite.com ,其中包含< iframe>
。像这样:
< html>
< head> ...< / head>
< body>
...
< a href =#loadiframe> SHow网站< / a>
< iframe id =#loadiframesrc =http://www.iframetarget.tld>
...
< / body>
< / html>
我希望iframetarget.tld不包含referrer /不能看到mywebsite.com是否正在加载它们的页面。
是可能的吗?
注意:iframe会使用jQuery lightbox / colorbox加载
解决方案
< iframe id =#loadiframesrc ='javascript:window.location.replace( HTTP://www.iframetarget.tld)'>
有效。
Is it possible to remove referrer when using iframe? here the case:
I have a page at http://www.mywebsite.com with an <iframe>
in it. Like this:
<html>
<head>...</head>
<body>
...
<a href="#loadiframe">SHow Website</a>
<iframe id="#loadiframe" src="http://www.iframetarget.tld">
...
</body>
</html>
i want to iframetarget.tld not contains referrer/can not see if mywebsite.com is loading their pages.
is that possible?
Note: iframe will load using jQuery lightbox/colorbox
解决方案
<iframe id="#loadiframe" src='javascript:window.location.replace("http://www.iframetarget.tld")'>
It works.
这篇关于隐藏iframe上的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文