I want to open file upload when page loaded.I used this code but it not working.
<input type="file"  id="browse" style="visibility:hidden;"  
accept="image/*" capture="camera" />    
<input style="background-color: #008CBA; color:white;"  type="button" 
value="Scan BarCode" id="fakeBrowse" />
   <script>
    window.onload=function(){
     $('#browse').trigger("click");
    }; 
    </script>
Please guide me how it will work.Thanks
 
    