I want to have a separate button which invokes the "browse" button on an input type=file. In internet explorer the following code works ok, in firefox nothing happens.<br><br>All I do is call click() for the input control.<br><br>Do you know how to make this work in firefox?<br><br>Thanks<br><br><br>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br>&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;<br><br>&lt;head&gt;<br>&nbsp;&nbsp;&nbsp; &lt;title&gt;Test&lt;/title&gt;<br>&nbsp;&nbsp;&nbsp; &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;script type="text/javascript"&gt;<br>&nbsp;&nbsp;&nbsp; function test()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var oTest = document.getElementById( "mytest");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oTest.click();<br>&nbsp;&nbsp;&nbsp;
 }<br>&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br>&lt;/head&gt;<br><br>&lt;body&gt;<br><br>&lt;form id="myform" action="test.aspx" method="post"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;input type="file" id="mytest" value="monkey" /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;input type="button" value="Programmatically Invoke The File Browser Dialog" onclick="javascript:test();" /&gt;<br>&lt;/form&gt;<br>&lt;/body&gt;<br><br>&lt;/html&gt;<br><p>&#32;
                <hr size=1> 
The <a href="http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/free_from_isp/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html">all-new Yahoo! Mail</a> goes wherever you go - free your email address from your Internet provider.