title: Copy file path directory to a text box
body: <p>Good morning/evening everyone.</p>
  
  <p>I want to ask if there is any possibility to copy the directory when using:</p>
  
  <pre><code>&lt;div id="AddAttachment" style="display: none;"&gt;
          &lt;input type="file" name="FILE" size="40" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>to another text field on a button click. The above is to browse for a file. Code in HTML.</p>
  
  <p>This is the JavaScript code for the button:</p>
  
  <pre><code>&lt;td&gt;
  &lt;button onclick="myfunction()"&gt;Create URL&lt;/button&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>The function in JavaScript looks like this:</p>
  
  <pre><code>function myfunction() {
  var LinkedTypeDiv.value = AddAttachment.value;}
  </code></pre>
  
  <p>This is the HTML Text field where I want to have the Directory in:</p>
  
  <pre><code>div id="LinkedTypeDiv" style="display: none;"&gt;
  &lt;input type="text" name="URL" size="40" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Its not working on my side and would like to know what I am doing wrong. Thanks</p>