input-file-hidden-open-dialog-on-click.html 370 B

123456789101112
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset='utf-8' />
  5. <title>Test that file dialog opens when click() is called </title>
  6. </head>
  7. <body>
  8. Test manually that when you click on "Click me" button, an file open dialog appears.
  9. <input id=fileinput type="file" hidden />
  10. <button onclick="document.getElementById('fileinput').click();">Click me</button>
  11. </body>
  12. </html>