How to open file browser without clicking browse button in Firefox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • p r mohanty
    New Member
    • Dec 2010
    • 2

    #1

    How to open file browser without clicking browse button in Firefox?

    i want to open the file browser with out clicking the browse button of the input type file in mozilla firefox.
    this should be done by using the javascript functions and if possible the event handlers.
    please help to find out the solution
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Think about it if that were possible.

    Someone could code a page to gather any sensitive/private files and secretly post them to a server. The input file restrictions are there for a reason.

    Note that Firefox 3 opens the dialog when you click on the text box too.

    Why do you want to do this?

    Comment

    • p r mohanty
      New Member
      • Dec 2010
      • 2

      #3
      this facility is available in the Internet Explorer.
      And in my project the code is written so but works only in IE, and now i need to run it in Firefox. so i need to open the dialog without clicking on the browse button or on the text box as well. i need to click on another button placed outside. by which it will work in firefox also and the project will be browser independent. please help me if you can..

      thank you very much for replying

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Are you talking about the click() method? That isn't supported in Firefox.

        Are you trying to "style" the input file element?

        Comment

        Working...