Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Form | Q1742 [ previous next ]

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

If it were possible, the following would do it. However on Netscape Navigator 4 on Linux this generates the error: "Warning: Cannot find callback list in XtCallCallbacks":

<form name="myForm">
<input type="file" name="myFile">
</form>

<script language="JavaScript"><!--
if (document.myForm.myFile.click) {
  document.myForm.myFile.click();
}
//--></script>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.