Scenario: I am creating a personal home page that i plan for using in safari/chrome/Firefox and I have a folder with images. I want to display a random image as the background of the page.
My solution to this was to create an array with all the images as separate links as the objects of the array. My JS works with a pre-made array of links but I have no clue on how to create an array from a directory.
I don't mind using jquery if required but i cant have server side php (or anything else) since i am linking the local html file to the new tab page.\
The html file is in the directory / and the images in /img .