- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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
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 Articles
- How do we set the text direction for the content in an element in HTML?
- How to set HTML content of an element using jQuery?
- Create editable content in an HTML document
- How do we add extra information about an element in HTML?
- Check whether the content of an element is editable or not in HTML
- How to set the vertical alignment of the content in an element with JavaScript?
- Set the start value of an ordered list in HTML?
- How to get HTML content of an element using jQuery?
- Set the coordinates of the area in an image map in HTML?
- How can I set the default value for an HTML element?
- Execute a script when the user pastes some content in an element in HTML?
- Dump the content of an array in Java
- How to enable webview mixed content in android?
- How can I set the content of an iframe without src using jQuery?
- How to specify whether the content of an element should be translated or not in HTML?

Advertisements