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

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
General support 21.0 webkit
(Yes) 29.0 (29.0) No support 15.0 webkit
Feature Android Edge Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile Samsung Internet
General support No support (Yes) 32.0 (32.0) No support No support No support Yes

See also

Document Tags and Contributors

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