I have a iframe which contains html. But when the html contains scripts, the iframe executes it. Is there a way to prevent it?
just enable sandbox is simple way to start with.
<iframe src="http://www.cnn.com" width="600" height="600" sandbox=""></iframe>
http://www.w3schools.com/tags/att_iframe_sandbox.asp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With