<!-- Any copyright is dedicated to the Public Domain. - http://creativecommons.org/publicdomain/zero/1.0/ --> <!DOCTYPE HTML> <html> <head> <title>frame</title> <script type="text/javascript"> var gamepad; window.addEventListener("gamepadconnected", function(e) { gamepad = e.gamepad; }); </script> </head> <body> </body> </html>