javascript set input type file value to zero code example Example: javascript set file input value to null document.getElementById("myInputFileID").value=null;