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>
<div id="Submit1" class="bonita_form_button_entry"> <div class="bonita_form_button_entry"><button type="button" class="bonita_form_button" onclick="alert('you really clicked me.');">Submit Documents</button></div></div>
  
  <script>
    window.addEventListener('load', function(ev) {
  document.getElementById('Submit1').addEventListener('click', function(ev) {
    if(!confirm('Are you sure ?')) {
      ev.stopImmediatePropagation();
    }
  }, true);
  
}, true);
  </script>
</body>
</html>
 
window.addEventListener('load', function(ev) {
  document.querySelector('.bonita_form_button').addEventListener('click', function(ev) {
    alert("you clicked me!");
  }, true);
  
}, true);
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers