fill input file on load How, please help me
some code not work :
<input type="file" class="form-control" id="fup" value="" />
<script>
    window.onload = function () {
        document.getElementById('fup').value = "C:/AiOLog.txt";
    }
</script>
fill input file on load How, please help me
some code not work :
<input type="file" class="form-control" id="fup" value="" />
<script>
    window.onload = function () {
        document.getElementById('fup').value = "C:/AiOLog.txt";
    }
</script>
 
    
     
    
    You cannot set a value to an input[type=file] element, because its very dangerous for a user. If the browser allow to do this then everyone will be able to get the files from the system of the user of a website, which is totally irrelevant for a user's privacy.
