On the standards track: Yes
Is Experimental: No
Is Deprecated: No
In Chrome version 1 on 2008-12-11 Note: Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
In Chrome Android version 18 on 2012-06-27 Note: Starting with Chrome Android 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
Not in Deno
In Edge version 12 on 2015-07-29
In Firefox version 1 on 2004-11-09
In Firefox for Android version 114 on 2023-06-06
In Internet Explorer version 5 on 1999-03-18
In Quest Browser version 5.0 on undefined Note: Starting with Quest Browser 5.0, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
In Opera version 6 on 2001-12-18 Note: Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
In Opera Android version 10.1 on 2010-11-09 Note: Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
In Safari version 1.1 on 2003-10-24
In Safari on iOS version 1 on 2007-06-29
In Samsung Internet version 1.0 on 2013-04-27 Note: Starting with Samsung Internet 5.0, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
In WebView Android version 4.4 on 2013-12-09 Note: Starting with WebView Android 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
In WebView on iOS version 1 on 2007-06-29