BeforeUnloadEvent

Read More at MDN DocsView Spec

Safe to Use

BeforeUnloadEvent is considered safe to use.

It’s supported by 94% of global browsers.

Browsers

ChromeOct 1, 2013v30.0.0
26%100%
100% of Chrome users are running a supported version.
SafariOct 22, 2013v7.0.0
5%100%
100% of Safari users are running a supported version.
EdgeJan 15, 2020v79.0.0
5%100%
There are no users of Edge running a supported version.
FirefoxNov 29, 2005v1.5.0
3%100%
100% of Firefox users are running a supported version.

Version Breakdown

 
Agent
Support
Adoption
Chrome
Oct 1, 2013 v30.0.0
26%100%
100% of Chrome users are running a supported version.
Oct 1, 2013 – Latest
v30.0.0+
26%100%

Full Support

Chrome Android
Oct 2, 2013 v30.0.0
36%100%
100% of Chrome Android users are running a supported version.
Oct 2, 2013 – Latest
v30.0.0+
36%100%

Full Support

Deno
Jul 21, 2022 v1.24.0
Deno supports this feature.
Jul 21, 2022 – Latest
v1.24.0+

Full Support

Edge
Jan 15, 2020 v79.0.0
5%100%
There are no users of Edge running a supported version.
Jan 15, 2020 – Latest
v79.0.0+
5%100%

Full Support

Firefox
Nov 29, 2005 v1.5.0
3%100%
100% of Firefox users are running a supported version.
Nov 29, 2005 – Latest
v1.5.0+
3%100%

Full Support

Firefox for Android
Mar 29, 2011 v4.0.0
Firefox for Android supports this feature.
Mar 29, 2011 – Latest
v4.0.0+

Full Support

Internet Explorer
Sep 30, 1997 v4.0.0
0%100%
100% of Internet Explorer users are running a supported version.
Sep 30, 1997 – Latest
v4.0.0+
0%100%

Full Support

 
Quest Browser
Unknown v5.0.0
Quest Browser supports this feature.
Unknown
v5.0.0+

Full Support

Opera
Oct 8, 2013 v17.0.0
1%100%
100% of Opera users are running a supported version.
Oct 8, 2013 – Latest
v17.0.0+
1%100%

Full Support

Opera Android
Nov 20, 2013 v18.0.0
Opera Android supports this feature.
Nov 20, 2013 – Latest
v18.0.0+

Full Support

Safari
Oct 22, 2013 v7.0.0
5%100%
100% of Safari users are running a supported version.
Oct 22, 2013 – Latest
v7.0.0+
5%100%

Full Support

Safari on iOS
Sep 18, 2013 v7.0.0
17%100%
There are no users of Safari on iOS running a supported version.
Sep 18, 2013 – Latest
v7.0.0+
17%100%

Full Support

Samsung Internet
Apr 10, 2015 v3.0.0
2%97%
There are no users of Samsung Internet running a supported version.
Apr 10, 2015 – Latest
v3.0.0+
2%97%

Full Support

WebView Android
Sep 3, 2014 v37.0.0
WebView Android supports this feature.
Sep 3, 2014 – Latest
v37.0.0+

Full Support

See Also

Contribute