views:

2582

answers:

2

Hey all,

how can I get an "open file dialogue" box in Javascript? ::)

Thanks in advance :)

Edit:

Duplicate of:

open-file-dialogue-box-in-javascript

and

javascript-file-uploads

+3  A: 

Javascript cannot open files. (Leastways not in any cross browser secure way).

Possibly you'd be interested in <input type="file" /> (an intro here).

annakata
i need only that dialogue box, i think u got me :)
Kishh
A: 

Duplicate of http://stackoverflow.com/questions/434631/file-upload-in-javascript - but I don't have the rep to mark it as such. :-)

Short answer is that no, you cannot do this through pure Javascript; the only way to do this is via an HTML form with an <input type="file"> element.

Andrzej Doyle
duly noted, voted to close
annakata