<input type="file" id="files"/>
<br/>
<textarea id="result" rows="20" cols="50" style="display:none"></textarea>
// eddiekidiw.org
function fungsi(e){var n=e.target.files[0],t=new FileReader;t.onload=function(e){var eddiekidiw=document.getElementById("result");eddiekidiw.style.display="block",eddiekidiw.value=e.target.result},t.readAsBinaryString(n)}window.File&&window.FileReader&&window.FileList&&window.Blob?document.getElementById("files").addEventListener("change",fungsi,!1):alert("The File APIs are not fully supported in this browser.");
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.