How to Blocked or disable pop-ads inside iframe?

User avatar
Posts: 52
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: Google [Bot]
Most users ever online was 156 on Sun Jun 17, 2018 7:42 am
Total posts 471
Total topics 355
Total members 69
Our newest member svetikvow
No birthdays today