I have folder in which there are no. of html files. Can i count the no. of files using javascript? Please help
Thanks
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.
No, this is not possible using JavaScript only.
You can make an Ajax call to a page and from the server side code you can find the number of files in a folder and then return the result to the callback function.
I assume the files are in not in the client machine.