Iframe

Creating an iframe:

Creating an iframe with anchor tag.

Link 1 Link 2 Link 3



marginheight attribute

marginwidth attribute

sandbox attribute

This attribute will prevent the frame from the malcious attack. Scripts are not work when sandbox attribute is used.


sandbox = "allow-same-origin"

sandbox = "allow-scripts"

This allow scripts only.

sandbox = "allow-forms"

Creating nested frames.(srcdoc="" attribute.)