title: Automate a click of javascript link and fetch the resulting page
body: <p>I searched a lot but could not find a solution for my question. It is quite simple as I think.</p>
  
  <p>I opened a web page by providing some parameters, such as <code>id=123456</code>. The searched result page then contains a link to something like <code>javascript:doSomething('ABC','ID'=123456)</code>.</p>
  
  <p>What I would like to know, is whether there is a program, in perl, python, java, c, whatever, that could take an id as a parameter, and automatically click the javascript link, and fetch the content of the resulting page.</p>
  
  <p>Do you have a solution to this problem?</p>
  
  <p>Thanks a lot!</p>
  
  <p>Frank</p>