title: javascript injection and looping
body: <p>I want to test a site against javascript injection. I am familier with following syntaxes which are working fine.</p>
  
  <pre><code>javascript:alert(document.cookie);
  javascript:void(document.cookie="authorization=true");
  javascript:void(document.cookie="authorization=true");javascript:alert(document.cookie);
  javascript:void(document.forms[0].email.value="test@test.com");
  </code></pre>
  
  <p>I tried following to inject a loop</p>
  
  <blockquote>
    <p>javascript:for(i=0;i&lt;10;i++){document.forms[0].t1.value=i;}</p>
  </blockquote>
  
  <p>It is working. But clering all the contents of browser and prints '9' (result).</p>
  
  <p>Is there any way/sybtax to inject a loop so i can run/call a function/statement multiple times. Or any tool/utility/aadon which can help me.</p>
  
  <p>*I can run the site only in IE.</p>