title: script "src" tag issues
body: <p>I have a script embedded in a page, which is as follows:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  function fireNlPopup()
  {
      setOpacity(0);
      centre();
      document.getElementById("NlPopup").style.display = "block";
      fadeInNlPopup();
  }
  
  //Other functions here
  
  &lt;/script&gt;
  </code></pre>
  
  <p>this makes the following appear as a popup in-window:</p>
  
  <pre><code>&lt;div id='NlPopup' name='NlPopup' class='nl'&gt;
  &lt;table width='380' cellpadding='0' cellspacing='0' border='0'&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;img height='23' width='356' src='images/x11_title.gif'&gt;&lt;/td&gt;
  &lt;td&gt;&lt;a href='javascript:fadeOutNlPopup();'&gt;&lt;img height='23' width='24' src='images/x11_close.gif' border='0'&gt;&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;&lt;td colspan='2' style='background: url("images/x11_body.gif") no-repeat top left; width: 380px; height: 277px;'&gt;
  Your next lecture is X, with Y, at Z.
  &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and finally, this is all called by a button:</p>
  
  <pre><code>&lt;button type="button" style="button" onClick="fireNlPopup()"&gt;Next Lecture&lt;/button&gt;
  </code></pre>
  
  <p>The problem is when I try and put the script is a different file. I have a file, called popup.js, with the exact same code (since it works when embedded in my php file, i assumed if i copied it rote into a js file and called that, it would work.</p>
  
  <p>When i call the js file, I use:</p>
  
  <pre><code>&lt;script type="text/javascript" src="popup.js"&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>and then all the content between the script tags go into popup.js. However, despite the code working fine when it's embedded, the second I take it out and put it in its own file, it doesn't work. I've double and triple checked, my code works fine, is syntaxed correctly, and that's why I left it out the code snippet. for some reason it just stops working. Am I calling the file incorrectly? It is on my server, I have checked that too =P</p>
  
  <p>I'm probably being really stupid, but any help would be really useful. I've been stuck on this for ages.</p>
  
  <p>Thanks =)</p>
  
  <p>EDIT: for those who want a look, page is live here: <a href="http://oliverlea.com/3yp/tt.php" rel="nofollow">http://oliverlea.com/3yp/tt.php</a></p>
  
  <p>Also, using Chrome to view source, the file does load as a link.</p>
  
  <p>Thanks for the help =)</p>
  
  <p>EDIT 2:</p>
  
  <p>First, yep the script tag is in the head of my file.</p>
  
  <p>Second:
  Ok, so regardless of whether I use src="popup.js" "/popup.js" or "./popup.js" I get nothing. The url always loads in Chrome's source viewer, and even by changing the permissions of the file to 0755, it still makes no difference.</p>
  
  <p>I am completely flummoxed by this.</p>