Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1485 Can you simulate a click on an <input type="file"> button?

You are here: irt.org | FAQ | JavaScript | Form | Q1485 [ previous next ]

In Internet Explorer 4+ the click() event on an input field with type="file" will simulate a click on the Browse... button, as expected.

However, in Netscape 3+ browsers the click() event on this same field will NOT simulate a click on the Browse... button. Instead, it will simulate a click INTO the input's textfield.

The browse... button object is apparently not exposed at all.

©2018 Martin Webb