title: Getting all the file names in a specific directory using Javascript
body: <p>A pure newbie in javascript :)</p>
  
  <p>What I need is a <strong>function</strong> to get all the file names in a directory(lets call it results) which is in the same place with my html file. </p>
  
  <p>The function could return array that holds file names or the result could be stored in a global variable.</p>
  
  <p>Regards!</p>
  
  <p><strong>Edit</strong> Thanks everyone for the answers and information. I really did not know that I had to use a client side language :)</p>