2013-05-01 48 views
-3

比方说你有一个iframe:如何在主窗口中打开iframe中的链接而不是iframe中的链接?

<iframe style="border-radius:15px;" width="190" height="450" 
    frameborder="0" scrolling="no" marginheight="5" 
    marginwidth="10" src="../img/interactive_map/interactive_sverige.htm"> 
</iframe> 

它有它的源本地,这是一个互动地图。地图包含链接。目标是在窗口中打开已存在的链接,而不是在iframe中(在页面上)。

这可能吗?

/日Thnx

+2

看看http://stackoverflow.com/questions/1037839/how-to-force-link-from-iframe-to-be-opened-in:

在你的iframe

所以-the-parent-window – coma 2013-05-01 21:25:25

+1

我做了,但我不知道如何或在哪里插入?为什么-3?这个问题有什么问题? :( – Captain 2013-05-01 22:20:53

回答

0

会不会增加目标= “_顶” 在interactive_sverige.htm链接做的伎俩?

<a href="foo.html" target="_top">Foo</a> 
相关问题