How to use sandbox attribute value ( allow-top-navigation-by-user-activation) with < iframe > tag in HTML ? with example

 How to use sandbox attribute value ( allow-top-navigation-by-user-activation) with < iframe >  tag in HTML ? with example 


 Sandbox attribute value allow-top-navigation-by-user-activation  Allows the iframe content to navigate its top-level browsing context, but only if initiated by user.


Example

<html>

<body>

<h1> Sandbox attribute Example</h1>


<iframe src="Sandbox_techthinkforu.org " 

sandbox="allow-top-navigation-by-user-activation">

</iframe>


</body>

</html>

Comments

Last 7 Days

How to use referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

Smart contract code for Anyone can send coins to each other without a need for registering with a username and password with help of Ethereum keypair

Why People Use PDF Merger Tools for Document Management

Why People Use iLovePDF Merger and Better Online Alternatives

Why Converting PDF to Text Improves Productivity (With Examples)

Why Convert PDF to Text and How It Helps in Editing & Research

How to Extract Text from PDF Files Online (Free & Easy Guide)

How to Convert PNG to PDF Online (Free & Easy Method) | ThinkforU

How to Reverse Text Online Instantly (Free Text Reverser Tool)

How to Compress PDF Without Losing Quality (Free & Fast Method)