Horje

How to add HTML <iframe> sandbox allow-top-navigation-by-user-activation Attribute

Allows the iframe content to navigate its top-level browsing context, but only if initiated by user.

index.html
Example: HTML
<iframe src="https://horje.com/" sandbox="allow-top-navigation-by-user-activation">
</iframe>

Output should be:

How to add HTML <iframe> sandbox allow-top-navigation-by-user-activation Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin