title: Opening a text file in browser - error on server
body: <p>I'm trying to open a text file in my browser, when doing it from my local machine it works perfectly but when I upload my files to my web server the link to the text file no longer works and I get a broken link error from the browser.</p>
  
  <p>Here is my code for opening the txt file:</p>
  
  <pre><code>&lt;div style="width: 100%; background-color: #CCC;text-align: center;"&gt;
  &lt;a href="code.txt" onclick="window.open(this.href,this.target,'height=300, width=500');return false;"&gt;Code&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>