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="range" min="100" max="500" value="250" />
  <div id="output"></div>
</body>
</html>
 
var timing = 250,
    i = 0,
    output = document.getElementById('output');
function loop() {
  i++;
  output.innerHTML = i;
  window.setTimeout(loop, timing);
}
document.querySelector('input[type="range"]').addEventListener('change', function (e) {
  timing = parseInt(this.value);
});
loop();
Output

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

Dismiss x
public
Bin info
Oka-pro
0viewers