2015-12-02 81 views
1

開我有以下的HTML代碼的iframe中snipnet與目標=「_空白」超鏈接不會在新標籤

<a href="http://www.google.co.in" target="_blank" >Google</a>

。 點擊ipad chrome中的標籤會在同一個標​​籤中打開。 根據標籤參數,它應該在新標籤頁/窗口中打開。

我錯過了什麼,請讓我知道你對此的想法。 任何理由其封鎖在新標籤中打開鉻

+1

** [這個答案可能會幫助你(http://stackoverflow.com/a/12402682/2065039)** –

+0

檢查是否缺少半個標籤 – chsword

+3

iframe中的目標幀可能重複(target =「\ _ blank」not working)](http://stackoverflow.com/questions/12402584/target-frame-in-iframe-target -blank-not-working) – Xufox

回答

4

出於某種原因,它不工作,所以我們可以通過另一種方式做到這一點

只是刪除線和補充一點: -

<a onclick="window.open ('http://www.google.com', ''); return false" href="javascript:void(0);"></a> 
+0

我可以知道是什麼原因?這是鉻的錯誤嗎? – Nyfer

+0

標記爲已解決,如果這有幫助 – teashark

0

嘗試使用_top代替_blank

<a href="http://www.google.co.in" target="_top" >Google</a> 
相關問題