I have a folder in D:\testDownload .I want to open the folder on click of a button.
How to place the code inside the javascript function.
function open(){
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to simply browse to the location you can just use
window.location = 'd:\\testDownload'. Most browsers will allow you to browse local discs. This is just the equivalent of typing that URL in the address bar.But this will only work for your specific case on your local machine. It is not possible to do anything like this in the context of the web. For starters, you don’t know where peoples’ download locations are, you can’t guarantee that they allow file browsing (what about mobile browsers etc).
If you want to open an Explorer window, then you’re out of luck.
EDIT: Travis Pessetto is wrong. This works, served from the local disk.