# Iframe sandbox

*noun*

say it: **“EYE-frame SAND-boks”** **/ˈaɪfreɪm ˈsændbɑks/**

The sandbox attribute on an iframe: it blocks scripts, forms, pop-ups and more inside the frame, then allows back only what you list.

## What is **Iframe sandbox**?

**Iframe sandbox** — Restrictions applied to content in an iframe through its sandbox attribute.

```html
<iframe src="comments.html" sandbox="allow-forms"></iframe>
```

## In a sentence

- “Thanks to the **iframe sandbox**, the embedded game can't open pop-ups or take over the page.”

Level: Freelancer · [More HTML terms at this level](https://www.ask-codey.com/glossary?category=html&level=4)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/iframe-sandbox
