Return the value of the sandbox attribute:
The result of x will be:
The sandbox property returns the value of the sandbox attribute in an iframe element.
The sandbox attribute is used to enable security restrictions for iframes with untrusted content (such as scripts and forms).
If specified as an empty string (sandbox=""), the sandbox attribute enables a set of extra restrictions for the content in the inline frame.
The value of the sandbox attribute can either be an empty string (all the restrictions is applied), or a space-separated list of pre-defined values that will REMOVE particular restrictions.
Note: This property is read-only.
The sandbox property is supported in all major browsers.
Note: The sandbox property is not supported in IE 9 and earlier versions, or in Opera 12 and earlier versions.
Return Value: | A String, representing the value of the sandbox attribute |
---|
HTML reference: HTML <iframe> sandbox attribute