简体   繁体   中英

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?

好吧,我没有明确问题,但我认为您可以使用类型等于文件的输入

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

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

See this related question.

尝试从Javascript文件管理器中打开文件资源管理器

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM