title: Button image action
body: <p>I have an issues with an image type button, here is my code:</p>
  
  <pre><code>&lt;script&gt;
  function test5(){
  
      var u = document.getElementById("id").value; 
      var url = "exceljsp.jsp";
      url += "?id=" + u;
      javascript:window.location.href = url;
  }
  &lt;/script&gt;
  &lt;form id="form" name="form" mrthode="get"&gt;
              &lt;table align="center"&gt;
                  &lt;td&gt; &lt;p&gt;Code FRs &lt;/p&gt; &lt;/td&gt;&lt;td&gt;  &lt;input type="text" name="id" id="id" value="" /&gt;&lt;/td&gt;
                  &lt;td&gt;                         &lt;td&gt;
                  &lt;td&gt; &lt;p&gt;Nom ou RS &lt;/p&gt; &lt;/td&gt;&lt;td&gt;&lt;input type="text" name="nom" id="nom" value="" /&gt;&lt;/td&gt;
              &lt;/table&gt;
  &lt;input type="image" src='excel.png' name="look excel table"  onclick="test5();"&gt;
  </code></pre>
  
  <p>The <code>javascript:window.location.href = url;</code> does not appear to be working. When I put <code>&lt;input type="button" name="look excel table" onclick="test5();"&gt;</code> it works. but if I put button type image  it does'nt work.</p>