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>
  <button>CLICK ME</button>
  
  <output></output>
</body>
</html>
 
var btn = document.querySelector('button'),
    output = document.querySelector('output');
btn.addEventListener('click', doStuff, false);
btn.removeEventListener('click', doStuff, false);
function doStuff() {
  alert('button clicked');
}
Output

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

Dismiss x
public
Bin info
ImpressiveWebspro
0viewers