sandbox
Description
Syntax
sandbox="value"
Values
empty
Disallows all.
allow-downloads
Allows the content to perform downloads.
allow-forms
Allows form submission.
allow-modals
Allows modal dialogs.
allow-orientation-lock
Allows screen orientation lock.
allow-pointer-lock
Allows the pointer lock API.
allow-popups
Allows popups.
allow-popups-to-escape-sandbox
Allows unsandboxed popups.
allow-presentation
Allows the presentation API.
allow-same-origin
Allows the content to be treated as being from its real origin instead of forcing it into a unique origin.
allow-scripts
Allows scripts.
allow-top-navigation
Allows the content to navigate to the top window.
allow-top-navigation-by-user-activation
Allows the content to navigate to the top window only when activated by the user.
allow-top-navigation-to-custom-protocols
Allows navigation to non fetch scheme to be handed off to external software.
Examples
1 · HTML · empty
2 · HTML · allow-downloads
3 · HTML · allow-forms
4 · HTML · allow-modals
5 · HTML · allow-orientation-lock
6 · HTML · allow-pointer-lock
7 · HTML · allow-popups
8 · HTML · allow-popups-to-escape-sandbox
9 · HTML · allow-presentation
10 · HTML · allow-same-origin
11 · HTML · allow-scripts
12 · HTML · allow-top-navigation
13 · HTML · allow-top-navigation-by-user-activation
14 · HTML · allow-top-navigation-to-custom-protocols
15 · JS · empty
16 · JS · allow-downloads
17 · JS · allow-forms
18 · JS · allow-modals
19 · JS · allow-orientation-lock
20 · JS · allow-pointer-lock
21 · JS · allow-popups
22 · JS · allow-popups-to-escape-sandbox
23 · JS · allow-presentation
24 · JS · allow-same-origin
25 · JS · allow-scripts
26 · JS · allow-top-navigation
27 · JS · allow-top-navigation-by-user-activation
28 · JS · allow-top-navigation-to-custom-protocols
Links
Attributes
- abbr
- accept
- accept-charset
- accesskey
- action
- alt
- as
- async
- autocapitalize
- autocomplete
- autofocus
- autoplay
- blocking
- charset
- checked
- cite
- class
- color
- cols
- colspan
- contenteditable
- controls
- coords
- crossorigin
- data
- datetime
- decoding
- default
- defer
- dir
- dirname
- disabled
- download
- draggable
- enctype
- enterkeyhint
- exportparts
- fetchpriority
- for
- form
- formaction
- formenctype
- formmethod
- formnovalidate
- formtarget
- headers
- height
- hidden
- high
- href
- hreflang
- http-equiv
- id
- imagesizes
- imagesrcset
- inert
- inputmode
- integrity
- is
- ismap
- itemid
- itemprop
- itemref
- itemscope
- itemtype
- kind
- label
- lang
- list
- loading
- loop
- low
- max
- maxlength
- media
- method
- min
- minlength
- multiple
- muted
- name
- nomodule
- nonce
- novalidate
- onabort
- onafterprint
- onauxclick
- onbeforeinput
- onbeforeprint
- onbeforetoggle
- onbeforeunload
- onblur
- oncancel
- oncanplay
- oncanplaythrough
- onchange
- onclick
- oncontextlost
- oncontextmenu
- oncontextrestored
- oncopy
- oncut
- ondblclick
- ondrag
- ondragend
- ondragenter
- ondragleave
- ondragover
- ondragstart
- ondrop
- ondurationchange
- onended
- onfocus
- onformdata
- onhashchange
- oninput
- oninvalid
- onkeydown
- onkeypress
- onkeyup
- onlanguagechange
- onload
- onloadeddata
- onloadedmetadata
- onloadstart
- onmousedown
- onmouseenter
- onmouseleave
- onmousemove
- onmouseout
- onmouseover
- onmouseup
- onmousewheel
- onoffline
- ononline
- onpagehide
- onpageshow
- onpaste
- onpause
- onplay
- onplaying
- onprogress
- onratechange
- onreset
- onresize
- onscroll
- onscrollend
- onsearch
- onseeked
- onseeking
- onselect
- onstorage
- onsubmit
- onsuspend
- ontimeupdate
- ontoggle
- onunload
- onvolumechange
- onwaiting
- onwheel
- open
- optimum
- part
- pattern
- ping
- placeholder
- playsinline
- popover
- popovertarget
- popovertargetaction
- poster
- preload
- readonly
- referrerpolicy
- rel
- required
- reversed
- rows
- rowspan
- scope
- selected
- shape
- size
- sizes
- slot
- span
- spellcheck
- src
- srcdoc
- srclang
- srcset
- start
- step
- style
- tabindex
- target
- title
- translate
- type
- usemap
- value
- width
- wrap