

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Open a file browser with default directory in JavaScript and HTML?
If you want to open a file browser in JavaScript and then want to set a default directory same as the file folder, then we cannot do it since windows do not allow you to do so,so it is not possible. For example:
C: :\Amit
This is mainly due to security risk involved to let web code to set any value on the machine.
We can never be assured that even directory exists or not.
- Related Questions & Answers
- How to open any file with its default application with PowerShell?
- Cross-browser drag-and-drop HTML file upload?
- How to open a file in the same directory as a Python script?
- Open New Browser Tab in Selenuim
- File and Directory Comparisons in Python
- How to open a file in read and write mode with Python?
- How to open chrome default profile with selenium?
- Ember.js browser support with HTML
- How to open a binary file in read and write mode with Python?
- How to open a file in binary mode with Python?
- How to open a file in append mode with Python?
- How to search a directory with file extensions in Java?
- How can I open a VDS file with three js?
- How to open a binary file in append mode with Python?
- How to open a browser window in full screen using Selenium WebDriver with C#?
Advertisements