How to Blocked or disable pop-ads inside iframe?

User avatar
Posts: 53
Joined: Mon Jan 30, 2017 4:58 am

How to Blocked or disable pop-ads inside iframe?

Sat Oct 27, 2018 5:42 am

When watching videos inside iframe in your personal website or wordpress theme,.. sometimes its annoying that when you click the video ... the page inside the iframe pop up some ads or open a new window of unwanted site. below is the easiest way to disable those.
<div class="resp-container"><iframe class="resp-iframe" src="//" frameborder="0" allowfullscreen="allowfullscreen" sandbox="allow-same-origin allow-scripts"></iframe></div>
Add this inside the iframe:

Code: Select all

sandbox="allow-same-origin allow-scripts"



In total there are 5 users online :: 1 registered, 0 hidden and 4 guests
Registered users: Bing [Bot]
Most users ever online was 33 on Sat Mar 09, 2019 8:21 pm
Total posts 489
Total topics 371
Total members 70
Our newest member Mirasoida
No birthdays today