Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <button id="myButton">Click Me</button>
</body>
</html>
 
var index,
 disabled;
$('#myButton').click(function(){
    if(disabled)
      return;
    
    index=0;
    disabled=true;
  
    var safariClearFixTimer = setInterval(safariClearFix ,100);
    setTimeout(function( ) { 
      disabled = false;
      clearInterval(safariClearFixTimer); 
    }, 10000);
      
  
  function safariClearFix(){
     console.log(index++);
  }
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers