Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<button onclick="useIt()">Use me</button>
<div id="container"></div>
<script>
  var counter = 0;
  function useIt() {
  counter = counter + 1;
    document.querySelector('#container').innerHTML = document.querySelector('#container').innerHTML
    + '<br>' + '<div>Template used: <span>'+counter+'</span></div>';
  }
</script>
</body>
</html>
Output

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

Dismiss x