Sumanth Rao
Sumanth Rao

Reputation: 59

Open File Explorer window from JavaScript

I want to open a File Explorer from JavaScript. I tried using window.open("FolderPath"), it works fine but along with the file explorer it also opens a new web browser tab.

Is there a way to just open the File explorer?

Upvotes: 1

Views: 11356

Answers (2)

Hamilton Lucas
Hamilton Lucas

Reputation: 419

In general, allowing javascript to run programs is a big no-no.

See this related question.

Upvotes: 1

Dlanor
Dlanor

Reputation: 276

well I don't have clear the question but I think that you can use a input with the type equals to file

<input type="file" id="someID" />

Upvotes: 0

Related Questions