title: Script src javascript
body: <p>What is the difference between this code</p>
  
  <pre><code>      var head=document.getElementsByTagName('head')[0]
        var script=document.createElement('script')
         script.setAttribute('type', 'text/javascript')
         script.setAttribute('src', "http://your-script.com/address-here.js")
         head.appendChild(script)
  </code></pre>
  
  <p>and this code</p>
  
  <pre><code>      &lt;script type="text/javascript" src="http://your-script.com/address-here.js"&gt;  
  
        &lt;/script&gt; 
  </code></pre>
  
  <p>Thank you.</p>