title: How To get the full path of the folder selected
body: <p>I have created <code>&lt;input type="file" name="files" id="fld1" webkitdirectory &gt;</code> in an html file. </p>
  
  <p>i can get the files using</p>
  
  <pre><code> var imageFiles = document.getElementById("fld1"),
  filesLength = imageFiles.files.length;
  for (var i = 0; i &lt; filesLength; i++) {
    alert(imageFiles.files[i].name);
  }
  </code></pre>
  
  <p>How can i get the full path of the directory selected in javascript . please help</p>
  
  <p>I want to show all the image files present in any folder using jquery slider. i can get the name of the files present in that folder but i cannot get the full path of the folder. how can i get it. </p>
  
  <p>i have done this to get the file path but it only worked in IE </p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
   function GetDirectory() {
    strFile = document.MyForm.MyFile.value;
    intPos = strFile.lastIndexOf("\\");
    strDirectory = strFile.substring(0, intPos);
    alert(strFile + '\n\n' + strDirectory);
    return false;
    }
   &lt;/script&gt;
  </code></pre>