I have a whole bunch of files called xxx_Page1.htm at a domain, where xxx is a type of animal. I have a script that iterates through a known list of animals setting MyVar for each one. The following line works just fine at bringing these files on to a web page inside MyDiv:
document.getElementById('MyDiv').innerHTML = "<iframe src='"+MyVar+"_Page1.htm'></iframe>";
However the the files at the server are being added to all the time. I can maintain the list of animals to make it work, but my question is can JavaScript return me a list of files it is allowed to see at a given domain?
e.g. can I get ./*_Page1.htm returned where * is a wildcard and ./ is the domain.
p.s. I'm not allowed to write any server side code in this case :(