0

If I have a folder called Portfolio, and inside that folder there are .HTML pages for each project. Now, on each Project page there is are three buttons, one is Go Back, and one is Next Project. I have managed to get the Go Back button work - and send the user to the Portfolio main Page.

The question is, what is the best solution to make the Next Project button work? - and send the user to the next project page (the .html file that is next to the current open .html file).

Hope my question is clear.

1 Answers1

0

You can't access the filesystem using the technologies from the tags. (There is FileSystem API, but it can't get access to any particular directory, but a sandboxed one.)

You will need to use some back-end language (like Ruby) or a static site generator (like Jekyll). Alternatively, you could put a link to the next file manually: <a href="next-file.html">Next</a>.

Pavlo
  • 43,301
  • 14
  • 77
  • 113