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 <flavio@economisa.com.br></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>> I want to have a separate button which invokes the "browse" button on <br>> an input type=file. In internet explorer the following code works ok, <br>> 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>> <br>>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br>> <br>><br>> <br><title>Test</title>> <br>> <meta http-equiv="Content-Type" content="text/html; "><br>> <script type="text/javascript"><br>> function test()<br>> {<br>> var oTest = document.getElementById( "mytest");<br>> oTest.click();<br>> }<br>> </script><br>> <br>><br>> <br>><br>> <form id="myform" action="test.aspx" method="post"><br>> <input id="mytest" value="monkey" type="file"><br>> <br><br>> <input value="Programmatically Invoke The File <br>> Browser Dialog" onclick="javascript:test();" type="button"><br>> </form><br>> <br>><br>> <br>><br>> ------------------------------------------------------------------------<br>> The all-new Yahoo! Mail <br>> <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>> goes wherever you go - free your email address from your Internet <br>> provider.<br>><br>>------------------------------------------------------------------------<br>><br>>_______________________________________________<br>>Javascript mailing list<br>>Javascript@LaTech.edu<br>>https://lists.LaTech.edu/mailman/listinfo/javascript<br>> <br>><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> 
                <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>.