şu tarz bi kod kullanılıyor o sitelerde iframe engellemek için.
<script>if (self != top) {
top.location.replace(location.href);
}</script>Bu kodun kullanıldığı sayfadan nasıl iframe çekebiliriz. yönlendirme olmayacak şekilde ?
5
●5.509
<script>if (self != top) {
top.location.replace(location.href);
}</script>Bu kodun kullanıldığı sayfadan nasıl iframe çekebiliriz. yönlendirme olmayacak şekilde ?

<script type="text/javascript">
window.onbeforeunload = tst
function tst(event) {
return "AAA"
}
function dofocus() {
frames[0].focus()
}
</script>
</head>
<body onload="dofocus()">
BUG: Chrome: when an iframe is focused, closing the window will not call onbeforeunload.
<iframe src="URL"></iframe>