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">
    let images = document.getElementById('images');
    images.onclick = function(event) {
        this.removeChild(event.target);
    };
    document.getElementById('add').onclick = function() {
        let img = document.createElement('img');
        img.src = document.getElementById('src').value;
        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