javascript html input file clear value code example Example: javascript clear file input document.getElementById("myFileInputID").value = null;