Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html id="html">
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body id="body">
  <section id="section">
<div id="div">
  <p id="p">    
  </p>
    </div>
   </section>
</body>
</html>
 
* {
  margin : 20px;
  border : solid 1px;
}
*:before {
    content: " (" attr(id) ")";
}
 
function onClick( e ) {
  // e.stopPropagation();
  console.log("   ----> this = " + this.nodeName, "e.target = " + e.target.nodeName);
}
var all = document.getElementsByTagName( '*' );
for ( var i = 0; i < all.length; i++ ) {
    all[i].addEventListener( 'click', onClick, true );
}
Output

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

Dismiss x
public
Bin info
dupontpro
0viewers