you should put the form name also: document.formname.getElement... regards, swanand reddy --- On Wed, 1/28/09, birgunj birgunj <birgunjp0071@xxxxxxxxx> wrote: From: birgunj birgunj <birgunjp0071@xxxxxxxxx> Subject: how to open choose file dialbox To: talk@xxxxxxxxxxxxxxx, php-list@xxxxxxxxxxxxxxx Cc: phpexperts@xxxxxxxxxxxxxxx Date: Wednesday, January 28, 2009, 4:21 AM Dear All, i am trying to open choose file dialog box when page upload.below is my code which works fine in internet explorer but it did not work in firefox. <HTML> <Head> </Head> <Body onLoad="javascript: document. getElementById( 'inputfile' ).click() ;"> <input type="file" id="inputfile" /> </Body> </HTML> please give me any help or idea. thanks [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]