I tried to open file dialog by 'oncontextmenu' event, but it didn't work! I can do this by other event, but only 'oncontextmenu' didn't work.
<html>
  <head>
    <script type="text/javascript">
     function wrapper(ev)
     {
       ev.preventDefault();
       document.getElementById('file').click();
       return false;
     }
    </script>
  </head>
  <body>
  <input id="button" type="button" oncontextmenu="wrapper(event)">
  <input id="file" type="file">
  </body>
</html>
I want to know solution or why it doesn't work. Thanks for reading.
 
     
    