<p>I have a row of buttons, which all create a pdf file which I want to open in a new tab.
This way the button page stays on top, and the pdf's open to get printed. To prevent clicking a button twice I disable the button, like this (I use python):</p>

<pre><code>&lt;input type='submit' value='Factureren' name='submitbutton' id='%s'
onclick="javascript:document.getElementById('%s').disabled=true; 
document.getElementById('%s').className='button_disabled';"&gt; % ((but_id,) *3)
</code></pre>

<p>In FF3 this works fine, i.e. the form is submitted, the script executed and then the button disables. In IE the button just disables, but the form script isn't executed.</p>

<p>Is there a solution to this IE problem?</p>

It is easier to do:
```
```
<input type='submit' value='Factureren' name='submitbutton' id='%s' 
onclick="this.disabled=true; this.className='button_disabled';"> % ((but_id,) *3)
```
```
I don't know if this solves your problem but it is what I would do in a case like this. I think you don't need "javascript:" anyway.