HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

sandbox

Description

The sandbox attribute for HTML specifies the security rules for nested content.

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