Skip welcome & menu and move to editor
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>
  <p>> format C & celebrate</p>
  <output></output>
  <output></output>
  <output></output>
</body>
</html>
 
output {
  display: block;
  margin-bottom: 20px;
  color: red;
}
 
var op = document.querySelector('output'),
    op2 = document.querySelectorAll('output')[1],
    op3 = document.querySelectorAll('output')[2],
    p = document.querySelector('p');
    
op.textContent = p.innerHTML; // propably not what we want
op2.textContent = p.textContent; // probably what we want
op3.innerHTML = p.innerHTML; // this works too
Output

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

Dismiss x
public
Bin info
ImpressiveWebspro
0viewers