Skip to content Skip to sidebar Skip to footer

Link Inside Iframe Wont Work

This drives me totally crazy now. A link (http://ns.nl) on the page inside the iframe I made wont work (http://newsoundsofeurope.com/videos/playlisttest). Chrome doesn't do anythin

Solution 1:

Remove target="_self and will work.


Solution 2:

If you want to open that link with a new page, you need to set the target="_blank"

<a href="http://ns.nl" target="_blank"><img src="026.png"/></a>

Also need to set the 'allow-popups' permission in the iframe

<iframe src="playlist_iframe.php" sandbox="allow-popups"></iframe>

https://www.w3schools.com/tags/att_iframe_sandbox.asp


Post a Comment for "Link Inside Iframe Wont Work"