This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The ongamepaddisconnected property of the Window interface represents an event handler that will run when a gamepad is disconnected (when the gamepaddisconnected event fires).

The event object is of type GamepadEvent.


window.ongamepaddisconnected = function() { ... };


window.ongamepaddisconnected = function() {
  // A gamepad has been disconnected


Specification Status Comment
The definition of 'gamepaddisconnected event' in that specification.
Working Draft Initial definition

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 35
Full support 35
No support 21 — 35
Prefixed Requires the vendor prefix: webkit
Edge Full support YesFirefox Full support 29IE No support NoOpera Full support 22
Full support 22
No support 15 — 22
Prefixed Requires the vendor prefix: webkit
Safari Full support 10.1WebView Android ? Chrome Android ? Edge Mobile Full support YesFirefox Android Full support 32Opera Android No support NoSafari iOS No support NoSamsung Internet Android Full support Yes


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Requires a vendor prefix or different name for use.
Requires a vendor prefix or different name for use.

See also

Document Tags and Contributors

Contributors to this page: wbamberg, chrisdavidmills
Last updated by: wbamberg,