2013-05-01 81 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> 
相關問題