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

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


Sandbox attribute value ( allow-top-navigation) Allows the iframe content to navigate its top-level browsing context.


Example

<html>

<body>

<h1>The iframe sandbox attribute Example</h1>


<iframe src="tech.thinkforu.org" 

sandbox="allow-scripts">


</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

How to Create a table in html with 2 rows and 3 columns (Source code )

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