img = document.createElement('img');
    img.src = 'https://ibm.com/able/favicon-32x32.png';
    img.width = 32;
    img.height = 32;
    div2.innerHTML = '';
    div2.appendChild(img);
    
    
  }

  </script>
</head>

<body>

  <p>Drag or move the image into the rectangle:</p>

  <div id='div2' class="div" ondrop="drop(event)" ondragover="dragover(event)"></div>
  <div class="div" style="border: 0px;"><button id="button1" onclick="move(event)" style="width:45px; height: 25px;">Move</button></div>

  <br