Reputation: 163
I have the below html code snipnet
<a href="http://www.google.co.in" target="_blank" >Google</a>
in a iframe. Clicking on the a tag in ipad chrome opens in the same tab. According to a tag parameters, it should open in new tab/window.
Am i missing something, Please let me know your thoughts about this. Any reason why its blocked from opening in new tab in chrome
Upvotes: 2
Views: 15813
Reputation: 1066
Keep your href
and force opening the link in a new tab with:
<a href="http://www.google.co.in" onclick="window.open(this.href,'_blank');return false;">Google</a>
Upvotes: 0
Reputation: 5596
Try using _top
instead of _blank
:
<a href="http://www.google.co.in" target="_top" >Google</a>
Upvotes: -1
Reputation: 260
For Some reason it is not working so we can do this by another way
just remove the line and add this :-
<a onclick="window.open ('http://www.google.com', ''); return false" href="javascript:void(0);"></a>
Upvotes: 6