繁体   English   中英

在iframe中加载窗口

[英]Load Window within iframe

我的页面上有一个iframe,其中有一个链接可以打开xyz.com的窗口。 唯一的事情是它会自动在iframe外面打开这个窗口。 我在iframe页面中嵌入了这个脚本:

<script>
function open_win()
{
window.open("http://www.w3schools.com","_blank","toolbar=yes, location=yes,        directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes,   width=400, height=400");
}
</script>
</head>

窗口显示,但是当我希望它显示在帧内时,它会显示在所有内容之外。

浏览器窗口中包含网页,其中可以包含iframe。

你不能在iframe中放置一个窗口。 这是窗口中网页中iframe的窗口,这只是奇怪的。

要将新内容保留在iFrame中,您可能应该使用显示/隐藏图层。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM