Ok thanks.<br><br>I didn't fancy doing a browser sniff to serve different behaviour so I do the .click() and if the page hasn't lost focus within 50ms (indicating that the file dialog has appeared) I show the iframe with the "Browse" button on it.<br><br>Works great!<br><br><b><i>Flávio Gomes &lt;flavio@economisa.com.br&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> I don't believe it's possible or easy to do.<br><br>If you check GMail on Firefox you'll see they use the standard "input file".<br><br>Gaz Newt escreveu:<br><br>&gt; I want to have a separate button which invokes the "browse" button on <br>&gt; an input type=file. In internet explorer the following code works ok, <br>&gt; in firefox nothing happens.<br>&gt;<br>&gt; All I do is call click() for the input control.<br>&gt;<br>&gt; Do you know how to make this work in firefox?<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt;<br>&gt; <br>&gt;
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br>&gt; <br>&gt;<br>&gt; <br><title>Test</title>&gt;     <br>&gt;     <meta http-equiv="Content-Type" content="text/html; "><br>&gt;     <script type="text/javascript"><br>>     function test()<br>>     {<br>>         var oTest = document.getElementById( "mytest");<br>>         oTest.click();<br>>     }<br>>     </script><br>&gt; <br>&gt;<br>&gt; <br>&gt;<br>&gt; <form id="myform" action="test.aspx" method="post"><br>&gt;     <input id="mytest" value="monkey" type="file"><br>&gt;     <br><br>&gt;     <input value="Programmatically Invoke The File &lt;br&gt;&gt; Browser Dialog" onclick="javascript:test();" type="button"><br>&gt; </form><br>&gt; <br>&gt;<br>&gt; <br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt; The all-new Yahoo! Mail <br>&gt; <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"> <br>&gt; goes wherever you go - free your email address from your Internet <br>&gt; provider.<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;_______________________________________________<br>&gt;Javascript mailing list<br>&gt;Javascript@LaTech.edu<br>&gt;https://lists.LaTech.edu/mailman/listinfo/javascript<br>&gt;  <br>&gt;<br><br>-- <br>Flavio Gomes<br>flavio@economisa.com.br<br><br>_______________________________________________<br>Javascript mailing list<br>Javascript@LaTech.edu<br>https://lists.LaTech.edu/mailman/listinfo/javascript<br></http:></blockquote><br><p>&#32;
                <hr size=1> 
To help you stay safe and secure online, we've developed the all new <a href="http://us.rd.yahoo.com/mail/uk/taglines/default/security_centre/*http://uk.security.yahoo.com/">Yahoo! Security Centre</a>.