title: Call a url in javascript on click
body: <p>I have a javascript function. On-click will call this. Using <code>document.getElementById</code> I am getting certain parameters there. Using that parameters I need to build a url. ie, onclick will have to execute that url.</p>
  
  <p>For example, in javascript,</p>
  
  <pre><code>function remove()
  {
  var name=...;
  var age = ...;
  // url should be like http://something.jsp?name=name&amp;age=age
  }
  </code></pre>
  
  <p>In short I need to execute <code>http://something.jsp?name=name&amp;age=age</code> this url on click </p>
  
  <pre><code>&lt;input type="button" name="button" onclick="remove();" /&gt;
  </code></pre>