title: How do you open HTML file in javascript?
body: <p>So, firstly I'd like to specific that I'm aware of the following code</p>
  
  <pre><code>window.open(url);
  </code></pre>
  
  <p>which has worked very well for me in the past.</p>
  
  <p>The problem this time is that I'm trying to open a html file that isn't online as such. The file itself is here "<a href="http://coynesresources.weebly.com/uploads/7/6/5/3/76537449/small.html" rel="nofollow">http://coynesresources.weebly.com/uploads/7/6/5/3/76537449/small.html</a>" and when I try to use the following</p>
  
  <pre><code>window.open("http://coynesresources.weebly.com/uploads/7/6/5/3/76537449/small.html");
  </code></pre>
  
  <p>only allows me to download the HTML file, rather than open it in my browser. Any help would be greatly appreciated.</p>