A Pen by hnsylitao

Thumbnail
This awesome code was written by hnsylitao, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright hnsylitao ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  hnsylitao</title>
  
  
  
  
  
</head>

<body>

  <input id="file" type="file" />
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/hnsylitao/a-pen-by-hnsylitao-mMgoBY */
document.getElementById('file').addEventListener("change",function(e){
  console.log(this);
  this.files = [];
})

Comments