Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <input type="file">
</body>
</html>
 
var input = document.querySelector('input');
var events = Object.getOwnPropertyNames(input).filter(function (name) {
  return name.indexOf('on') === 0;
});
console.log(events);
events.forEach(function (method) {
  input[method] = function () {
    console.log(method + " triggered", arguments);
  };
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
SBoudriaspro
0viewers