{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/alerts",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "alerts",
    "name": "Alerts",
    "description": "The window.alert(), window.confirm(), and window.prompt() methods open modal dialogs for notifying the user, asking for confirmation, or entering text.",
    "group": "other",
    "groupName": "other",
    "spec": "https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#user-prompts",
    "baseline": "high",
    "baselineLowDate": "2015-07-29",
    "baselineLowDay": 16645,
    "baselineHighDate": "2018-01-29",
    "compatCount": 3,
    "cats": [
      "api"
    ],
    "compatKeysSample": [
      "api.Window.alert",
      "api.Window.confirm",
      "api.Window.prompt"
    ],
    "s": {
      "chrome": {
        "v": "1",
        "d": 14224
      },
      "chrome_android": {
        "v": "18",
        "d": 15518
      },
      "edge": {
        "v": "12",
        "d": 16645
      },
      "firefox": {
        "v": "1",
        "d": 12731
      },
      "firefox_android": {
        "v": "4",
        "d": 15062
      },
      "safari": {
        "v": "1",
        "d": 12226
      },
      "safari_ios": {
        "v": "1",
        "d": 13693
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "api.Window.alert",
      "cat": "api",
      "mdn": "API/Window/alert",
      "spec": "https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-alert-dev",
      "st": 1,
      "wf": "alerts",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "1",
          "d": 14224
        },
        "firefox": {
          "v": "1",
          "d": 12731
        },
        "safari": {
          "v": "1",
          "d": 12226
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "4",
          "d": 15062
        },
        "safari_ios": {
          "v": "1",
          "d": 13693
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "1",
          "d": 13693
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "3",
          "d": 10196
        },
        "opera_android": {
          "v": "10.1",
          "d": 14922
        },
        "deno": {
          "v": "1.5",
          "d": 18562
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "4",
          "d": 10134
        }
      },
      "notes": [
        {
          "t": "Starting with Chrome 46, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "chrome"
          ]
        },
        {
          "t": "Starting with Chrome Android 46, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "chrome_android"
          ]
        },
        {
          "t": "Starting with WebView Android 46, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "webview_android"
          ]
        },
        {
          "t": "Starting with Samsung Browser 5.0, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "samsunginternet_android"
          ]
        },
        {
          "t": "Starting with Opera 33, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "opera",
            "opera_android"
          ]
        },
        {
          "t": "Starting with Quest Browser 5.0, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "oculus"
          ]
        }
      ]
    },
    {
      "id": "api.Window.confirm",
      "cat": "api",
      "mdn": "API/Window/confirm",
      "spec": "https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-confirm-dev",
      "st": 1,
      "wf": "alerts",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "1",
          "d": 14224
        },
        "firefox": {
          "v": "1",
          "d": 12731
        },
        "safari": {
          "v": "1",
          "d": 12226
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "4",
          "d": 15062
        },
        "safari_ios": {
          "v": "1",
          "d": 13693
        },
        "webview_android": {
          "v": "1",
          "d": 14145
        },
        "webview_ios": {
          "v": "1",
          "d": 13693
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "3",
          "d": 10196
        },
        "opera_android": {
          "v": "10.1",
          "d": 14922
        },
        "deno": {
          "v": "1.5",
          "d": 18562
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "4",
          "d": 10134
        }
      },
      "notes": [
        {
          "t": "Starting with Chrome 46, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "chrome",
            "webview_android"
          ]
        },
        {
          "t": "Starting with Chrome Android 46, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "chrome_android"
          ]
        },
        {
          "t": "Starting with Samsung Browser 5.0, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "samsunginternet_android"
          ]
        },
        {
          "t": "Starting with Opera 33, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "opera",
            "opera_android"
          ]
        },
        {
          "t": "Starting with Quest Browser 5.0, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "oculus"
          ]
        }
      ]
    },
    {
      "id": "api.Window.prompt",
      "cat": "api",
      "mdn": "API/Window/prompt",
      "spec": "https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-prompt-dev",
      "st": 1,
      "wf": "alerts",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "1",
          "d": 14224
        },
        "firefox": {
          "v": "1",
          "d": 12731
        },
        "safari": {
          "v": "1",
          "d": 12226
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "4",
          "d": 15062
        },
        "safari_ios": {
          "v": "1",
          "d": 13693
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "1",
          "d": 13693
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "3",
          "d": 10196
        },
        "opera_android": {
          "v": "10.1",
          "d": 14922
        },
        "deno": {
          "v": "1.5",
          "d": 18562
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "4",
          "d": 10134
        }
      },
      "notes": [
        {
          "t": "Starting with Chrome 46, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "chrome"
          ]
        },
        {
          "t": "Firefox strips newline characters from the prompt response; see <a href=\"https://bugzil.la/1716229\">bug 1716229</a>.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Starting with Chrome Android 46, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "chrome_android"
          ]
        },
        {
          "t": "Firefox for Android strips newline characters from the prompt response; see <a href=\"https://bugzil.la/1716229\">bug 1716229</a>.",
          "b": [
            "firefox_android"
          ]
        },
        {
          "t": "Starting with WebView Android 46, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "webview_android"
          ]
        },
        {
          "t": "Starting with Samsung Browser 5.0, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "samsunginternet_android"
          ]
        },
        {
          "t": "Starting with Opera 33, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "opera",
            "opera_android"
          ]
        },
        {
          "t": "Starting with Quest Browser 5.0, this method is blocked inside an <code>&lt;iframe&gt;</code> unless its sandbox attribute has the value <code>allow-modals</code>.",
          "b": [
            "oculus"
          ]
        },
        {
          "t": "This function has no effect in the Modern UI/Metro version of Internet Explorer for Windows 8. It does not display a prompt to the user, and always returns <code>undefined</code>. It is not clear whether this is a bug or intended behavior. Desktop versions of IE do implement this function.",
          "b": [
            "ie"
          ]
        }
      ]
    }
  ]
}