Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<script>
  
const importLoaded = (event) => {
  const importedDoc = event.target.import;
  const importedDocContent = importedDoc.body;
  
  const content = document.querySelector('#content');
  content.appendChild(importedDocContent);
};
  
</script>
<!--
  import our previous example - we need to use onload, rather
  than addEventListener('load', ...) as the import will usually
  have loaded by the time the listener is attached.
-->
<link rel="import" href="https://output.jsbin.com/tolita" onload="importLoaded(event)">
<div id="content"></div>
Output

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

Dismiss x
public
Bin info
lamplightdevpro
0viewers