

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Enable an extra set of restrictions for the content in an <iframe> in HTML?
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>
- Related Questions & Answers
- How can I set the content of an iframe without src using jQuery?
- How to load the content of an iframe dynamically using jQuery?
- How can I access the content of an iframe using jQuery?
- How do we set the text direction for the content in an element in HTML?
- How to get the body's content of an iframe in JavaScript?
- How to set HTML content of an element using jQuery?
- How to specify the HTML content of the page to show in the <iframe> in HTML?
- Create editable content in an HTML document
- How to set the vertical alignment of the content in an element with JavaScript?
- Dump the content of an array in Java
- Check whether the content of an element is editable or not in HTML
- Set the start value of an ordered list in HTML?
- How to create an inline frame using the <iframe> tag inside an HTML page?
- How do we add extra information about an element in HTML?
- How to get HTML content of an element using jQuery?
Advertisements