Q
What does the sandbox attribute on an do?
-
A
It speeds up the iframe
-
B
It makes the iframe invisible
-
C
It applies extra restrictions to the framed content (such as blocking scripts and forms) unless specific permissions are added
-
D
It allows the iframe full access to the parent page
Correct Answer:
C. It applies extra restrictions to the framed content (such as blocking scripts and forms) unless specific permissions are added
Explanation:
For example, sandbox="allow-scripts" re-enables scripts only.