I have some HTML files with numeric names in a folder called Project like this:
230512.html 230519.html 230530.html 230630.html 240120.html
I want to add a "Next Page Button" to each file. When I click the button, the hyperlink takes me to the next page in ascending order.
So if I'm in 230530.html
, clicking the next page button should take me to 230630.html
. p>
The file name is basically a date in the format YYMMDD.html. Dates may not be consecutive.
Any ideas how to create such a script?
Here is some code:
If you are on the last page, nextFileName will return to index 0.