title: Python - clicking a javascript button
body: <p>I have a button on a page that needs to be clicked for me to move on to the next page in a sequence, and I was wondering how this is possible with Python. The button seems to be the mix of an HTTP POST request and Javascript, here is the code for the button:</p>
  
  <pre><code>&lt;FORM name="ff" action="nq2.phtml" method="post"&gt;
    &lt;INPUT type="hidden" name="target" value="-1"&gt;
    &lt;INPUT type="hidden" name="fact" value=""&gt;
    &lt;INPUT type="hidden" name="parm" value=""&gt;
    &lt;INPUT type="hidden" name="use_id" value="-1"&gt;
    &lt;INPUT type="hidden" name="nxactor" value="1"&gt;
    &lt;TD align="center" valign="top"&gt;
    &lt;DIV class="pr"&gt;
    &lt;A href="javascript:;" onClick="settarget(5); setch(ch5); return false;"&gt;
  </code></pre>
  
  <p>I honestly have no idea how to approach something like this and was wondering if anyone had some insight about how I would go about doing it.</p>