-1

The code below creates an iFrame for this page. but as soon as it loads, it basically refreshes the page and I lose the iFrame:

var ifram = '<iframe id="frame" width="100%" height="1" scrolling="yes"></iframe>';
document.write(ifram);
var iframe = parent.document.getElementById("frame");
iframe.height = 600;
iframe.width = '100%';
iframe.src = "http://www.roblox.com/--item?id=19027209";
4

1 回答 1

2

该页面有一个框架破坏脚本,防止您将其嵌入您的网站:

<script type="text/javascript">
    if (top.location != self.location) {
        top.location = self.location.href;
    }
</script>

网站也可以使用X-Frame-Options标题来防止嵌入,例如google.com

于 2013-06-26T21:07:40.073 回答