how to clear the file from a file input control javascript code example Example: javascript clear file input document.getElementById("myFileInputID").value = null;