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

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

How to add Amazon website inside iframe?

What is a < code > tag?

How to use loop attribute with < video > tag in HTML for YouTube ? with example

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

free source code for website

What does P mean in HTML?

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

How to use comments in Solidity programming language ?