我创建了一个 iframe 并在其中加载了一个网站(我无权访问该网站 - 它不是我编写的)
<script type="text/javascript">
var el = document.createElement("iframe");
el.setAttribute('id', 'ifrm');
document.body.appendChild(el);
el.setAttribute('src', 'http://AWEBSITE.com/');
alert(document.getElement("iframe").cookie); //This doesnt work.....
</script>
我可以以某种方式使用 javascript 来读取 iframe 的 cookie 吗?