How to Blocked or disable pop-ads inside iframe?

User avatar
Mitch
Posts: 55
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="//www.example.com/embed/58747" 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"


Return to “WEB DESIGN, PHP, HTML”

Links

In total there are 7 users online :: 1 registered, 0 hidden and 6 guests
Registered users: Bing [Bot]
Most users ever online was 19 on Mon May 20, 2019 11:06 pm
Total posts 527
Total topics 406
Total members 73
Our newest member Kelly
No birthdays today