title: HTML5 Javascript - How to select the full path of folder selection
body: <p>I am looking to have an icon button on a page that when 'clicked' opens a Browser Window Dialog, with the option of selecting a local folder.  The path is then returned and displayed on the webpage.</p>
  
  <p>This is a folder I will look at later, but for now I just want to display the local path.</p>
  
  <p>This small piece of HTML will return a filename, but I just want to select a folder.</p>
  
  <pre><code>&lt;form id="uploadForm" enctype="multipart/form-data"&gt;
   &lt;input id="submit" src="folder.png" type="file"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>If you then change the input field you can select all the files (returning total number) in the folder you select:</p>
  
  <pre><code>&lt;input id="submit" src="folder.png" type="file" webkitdirectory mozdirectory msdirectory odirectory directory /&gt;
  </code></pre>
  
  <p>But I don't want all the files :) I am just after the full path name of that folder.  </p>
  
  <p>Is there a way to just return the folder name and path?</p>
  
  <p>Thanks for any help in advance.</p>
  
  <p><strong>UPDATE</strong>
  I want to eventually search that folder for file types specified by the user and on user action.  So not something that is automatic (or dodgy). It's similar to creating user settings/config - specifying a root folder for something.</p>