title: why does jquery's .load() ignore <script>?
body: <p>I have a every common page a.html which looks like this:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;script type="text/javascript" src="xyz.js" &gt; &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div&gt; ... &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In b.html, I use jquery's <code>.load()</code> function to a <code>div</code>. </p>
  
  <pre><code>$("#myDiv").load("a.html")  
  </code></pre>
  
  <p>It works. The xyz.js's content is loaded along with a.html. But why isn't there a <code>&lt;script&gt;</code> tag? I open firebug to see the source. There is a's  but no a's <code>&lt;script&gt;</code>.</p>
  
  <p>I want the <code>&lt;script&gt;</code> because I need it to find relative path.
  (<a href="https://stackoverflow.com/questions/6273654/javascript-how-can-i-know-where-is-the-js-self">this question</a>) </p>
  
  <p>Edit: I tried to use <code>.get()</code> and <code>.html()</code>. Didn't help.</p>
  
  <p>Edit2: The title is not very appropriate. The xyz.js runs. But no <code>&lt;script&gt;</code>.</p>