Opening a javascript dialog box to store to the complete file location into a var
<p>I need your help.</p>

<p>I would like to design a javascript function, such that when I call it, it will open up a dialog box asking me to navigate to the selected file, once I click on the "open" button, it will then save the file's path into a var.</p>

<p>How do you do this? I would NOT like to the input type="file" method, as I dont require that particular input to be on my page.</p>

<p>ie:</p>

<pre><code>function getlocation() {
var x = popup the open file dialog box and let the user select a file
}
</code></pre>
