Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Test Page</title>
<style>
  body {
    font-family: sans-serif;
  }
</style>
</head>
<body>
</body>
</html>
 
(function() {
  
    var sc = document.createElement('script');
    var content = "alert('aa')";
    if ("content" in sc) {
      //console.log("1");
      sc.content = content;
    }
    else {
      //console.log("2");
      sc.appendChild(document.createTextNode());
    }
    document.body.appendChild(sc);
})();
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers