title: Including <script> tag in <script type="text/template"> tag
body: <p>I am a new programmer and I have a little question. This is a part of my code:</p>
  
  <pre><code>&lt;nav&gt;
     &lt;ul&gt;
       &lt;li&gt;&lt;input type="button" value="HomePage" id="home1" data-page="home"&gt;&lt;/li&gt;
       &lt;li&gt;&lt;input type="button" value="About" id="about1" data-page="about"&gt;&lt;/li&gt;
     &lt;/ul&gt;
  &lt;/nav&gt;
  
      &lt;div id="content"&gt;
          &lt;div class="page active"&gt;
              &lt;div class=firstLoad&gt;
              (some content...)
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;script type="text/template" id="home"&gt;
  &lt;div id="backImage"&gt;
    &lt;div id="spinner"&gt;
  &lt;/div&gt;
  &lt;div&gt;
     &lt;input type="button" value="..." id="car" class="button"&gt;
  &lt;/div&gt;
  &lt;div&gt;
     &lt;input type="button" value="..." id="Car1" onclick="location.href='#'" class="button"&gt;
  &lt;/div&gt;
  &lt;div&gt;
     &lt;input type="button" value="..." id="reset" class="button"&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;script src="location.js"&gt;&lt;/script&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>My question is how can I use this "location.js" script tag in the html page (id="home") when I call this html page with innerHTML and I change the current appear page?
  No matter what I have done this script doesn't work for me at all in the html page.</p>
  
  <p>Thank you...:)</p>