Current Directory | JavaScriptSource

Current Directory

Dan Worsham Sep 9, 2000
Takes the user to a directory listing of all files in the current directory. Or, if an index.html file exists in that directory, they are taken to that page instead.

The JavaScript Source: Navigation: Current Directory

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response

1 comment)

Nice Code. Will hold onto it. Was looking for a way to create an object containing all the names of files In a directory though.

JS Nov 7, 2013