JAVASCRIPT-NAVIGATION-LINKS.PHP

Do you have a website with a navigation system that follows its directory structure? If so, these functions can be just what you need.

This is the JavaScript version of Directory Navigation Links, for those who wish to implement the solution on static html. Directories() returns an array of directories: The one containing the script itself, and its parents. directory_navigation_links() calls Directories() and uses the return value to create a navigation bar.

JAVASCRIPT-NAVIGATION-LINKS.JS