<!DOCTYPE html>
<html>
<body>
<input id="target" type="file" />
<script type="text/javascript">
window.onload = function() {
var fileInput = document.getElementById("target");
fileInput.click();
};
</script>
</body>
</html>