1 2 3 4 5 6 | js 代码: (function () { if (window != window.top) { window.top.location.replace(window.location); //或者干别的事情 } })(); |
1 2 3 | js 代码: var location = document.location; // 或者 var location = ""; |
1 2 | html 代码: <meta http-equiv="Windows-Target" contect="_top"> |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
Basic support | 4.1.249.1042 | 3.6.9 (1.9.2.9) | 8.0 | 10.5 | 4.0 |
1 | Header always append X-Frame-Options SAMEORIGIN |
1 | add_header X-Frame-Options SAMEORIGIN; |
1 2 3 4 5 6 7 8 9 10 11 | <system.webServer> ... <httpProtocol> <customHeaders> <add name="X-Frame-Options" value="SAMEORIGIN" /> </customHeaders> </httpProtocol> ... </system.webServer> |
欢迎光临 商会资讯 (http://smellage.com/) | Powered by Discuz! X2.5 |