Languages
[Edit]
EN

JavaScript - directory selection window

12 points
Created by:
JoanneSenior
1070

In this short article, we would like to show how to open dialog that lets to choice directory using HTML and JavaScript.

Quick solution:

Simple preview:

Directory selection dialog using HTML and JavaScript.
Directory selection dialog using HTML and JavaScript.

 

Practical example

Edit

The time when directory selection dialog API was introduced in the some web browsers is wide. It is since 2010 in Google Chrome, around 2013 in Opera, around 2016 in Firefox, up to 2018 in Apple Safari.

Warning: some web browsers may ask user to confirm directory selection by clicking to the additionaly displayed dialog.

Source code:

 

See also

Edit
  1. JavaScript - convert blob to base64

Alternative titles

  1. JavaScript - directory choice window
  2. JavaScript - open directory dialog
  3. JavaScript - directory selection dialog
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join