The Most Secure Cross Browser Testing Platform since 2012

Blog

Cross Browser Sandbox Attribute for iframes

shutterstock_234378844
BLOG / Web Development

Cross Browser Sandbox Attribute for iframes

Sandbox attribute for iframes is the method of running external site pages with reduced privileges (e.g. no JavaScript) in iframes.

Browser Support

Sandbox attribute for iframes is already supported by all major browsers so it should be really easy to get it working cross-browser.

Code Example

You can use sandbox attribute for iframes like this:

<iframe src="demo_iframe.htm" sandbox></iframe>

More Information

More information can be found here.