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

Tag is used to create inline frame ?

Difference between Public vs Internal vs Private state variables in solidity programming langauge with example ?

How to use Local Variable for whose values are present till function is executing in solidity ?

Syntax of writing a different font style in HTML

Css source code for scrollbars