Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Get current script element demo</title>
</head>
<body>
  
  <p>
    
    
  <h1>Stuff</h1>
  
  Here's some stuff. It should all be where it's supposed to.
  
  <h2>One thing</h2>
  
  <script src="http://jsbin.com/oloyef/3" data-foo="one"></script>
  
  <h2> Another thing </h2>
  
  <script src="http://jsbin.com/oloyef/3" data-foo="two"></script>
  
  <h2> Something else </h2>
  
  <script src="http://jsbin.com/oloyef/3" data-foo="three"></script>
  
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers