The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript double click to open file selector in IE

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #147649

    Below the JSfiddle with my code

    After the “Select zip file :” label there is supposed to be an image which user can click on order to open the file selector (CSS – label.cabinet). Since I couldn’t upload the image to JSFiddle, you’ll need to click the blank area after this label in order to open the file selector.

    Now, in chrome and Firefox, I can just do a single click and it opens the file selector. But for IE9 I need to do a double click. Is there a way to open the file selector with single click in IE as well.

    Thank you


    Since you want the button to be 79 pixels wide, that’s also what you should assign to the input.file:


    Thanks a lot, Senff. This solved the problem.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.