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.
Asked
Active
Viewed 342 times
0

Khalid Hussain
- 1,675
- 17
- 25

Rajesh.K
- 1
- 3
1 Answers
-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 :
- Returns all filenames, so you javascript can chose the one to load
- Load the demanded file
If conditions are not dependents on client entry, you can combine both of them.