javascript open a file
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3582671/how-to-open-local-disk-file-with-javascript">How to open local disk file with javascript</a>  </p>
</blockquote>



<p>I would want to open a file with javascript.</p>

<p>I am able to open a url by using the code below</p>

<pre><code>  myWindow=window.open('http://testpages.com/faces/faces.html?faces&amp;titles='+titleArray+',&amp;url='+urlArray); 
  myWindow.focus();
</code></pre>

<p>But if i try to open the local file, i am not able to do that. This is how i tried using "window.location",</p>

<pre><code> myWindow=window.location('file:///C:/Users/sbalu/workspace/faces/faces.html?faces&amp;titles='+titleArray+',&amp;url='+urlArray); 
</code></pre>

<p>can anyone please help me out ?</p>
