input - on webpage enter, display html browse file dialogue? -
i have following code giving manual browse file dialogue:
input type="file" name="image_file" id="image_file" onchange="fileselecthandler()"
is there way call (perhaps using javascript?) automatically on page enter user given browse file dialogue upon entering webpage?
thanks!
<input type="file" name="image_file" id="image_file" onchange="fileselecthandler()" style="visibility:hidden" />
and jquery code:
<script> $(document).ready(function(){ $("input[type='file']").trigger('click'); }); </script>
this requires permissions user allow pop ups security reasons... jquery trigger file input http://www.acunetix.com/websitesecurity/upload-forms-threat/
Comments
Post a Comment