简体   繁体   English

在顶部框架中打开灯箱

[英]Open Lightbox in top frame

I'm including a page on my site with an iframe. 我要在我的网站上添加一个带有iframe的页面。 The page in the iframe has the functionality to open a lightbox, which now of course opens in the iframe itself. iframe中的页面具有打开灯箱的功能,现在可以在iframe本身中打开该灯箱。

Is there a possibility that the iframe content opens the lightbox on the top frame? iframe内容是否有可能在顶部框架上打开灯箱? (On the page that includes this iframe) (在包含该iframe的页面上)

if it's opening via javascript, use 如果通过javascript打开,请使用

window.top.location = "http://destination-url.com"; 

if it's a anchor link, then add 如果它是锚链接,则添加

target="_top":

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

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