Tuesday, July 22, 2014

The sandbox attribute on an iFrame...

...may forbid the content in the iFrame from affecting the web page hosting it like so:

<iframe src="http://www.example.com/" sandbox=""></iframe>

 
 

...or may be empowered to like so:

<iframe src="http://www.example.com/" sandbox="allow-same-origin"></iframe>

 
 

http://www.w3schools.com/tags/att_iframe_sandbox.asp has more on this.

No comments:

Post a Comment