When there is a new file in a subfolder I have to create a href link like below. Right now I am doing it manually.
<a href='#' onclick="myfunction('filename')">Filename</a>
<script>
function myfunction(id1)
{
alert(id1);
}
</script>
Is there any way to load file names dynamically and automatically create href links of all of them so I can call them by their names?
Thanks