0

I have a list of html files in a folder with naming convention file-name + time-stamp (for example report122345). Here 122345 is file creation hour minutes second. I want to select the latest file and open it by another html code.

Khalid Hussain
  • 1,675
  • 17
  • 25
Rajesh.K
  • 1
  • 3

1 Answers1

-1

Well, you cannot do in pure HTML. You’ll need to add some Javascript. (Look at How do I load an HTML page in a <div> using JavaScript? )

Basically you need 1 or 2 web services :

  1. Returns all filenames, so you javascript can chose the one to load
  2. Load the demanded file

If conditions are not dependents on client entry, you can combine both of them.

Community
  • 1
  • 1
Jurion
  • 1,230
  • 11
  • 18