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">
</head>
<body>
  
    <input id="src" type="text"><button id="add">新增圖片</button>
    <div id="images"></div>
  
<script type="text/javascript">
    document.getElementById('add').onclick = function() {
      let img = document.createElement('img');
      
      img.src = document.getElementById('src').value;
      img.onclick = function() {
          document.getElementById('images').removeChild(this);
      };
      document.getElementById('images').appendChild(img);
    };
</script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
JustinSDKpro
0viewers