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

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


Sandbox attribute value ( allow-pointer-lock ) use to  

Allows to use the Pointer Lock 

API(Application programming interface )



Example 

<body>

<iframe src="demo_iframesandbox.html" 

sandbox="allow-pointer-lock">

</iframe>

</body>

Comments

Last 7 Days

How to use referrerpolicy Attribute value (strict-origin ) with < iframe > tag in HTML ? with example