Enable an extra set of restrictions for the content in an <iframe> in HTML?

HTMLWeb DevelopmentFront End Technology

Use the sandbox attribute to enable an extra set of restrictions for the content in an <iframe> in HTML.

Example

You can try to run the following code to implement sandbox attribute −

<!DOCTYPE html>
<html>
   <body>
      <iframe src = "new.htm" sandbox>
         <p>Your browser does not support iframes.</p>
      </iframe>
   </body>
</html>
raja
Published on 14-Mar-2018 10:25:51
Advertisements