I have a series of buttons that create a PDF file that I want to open in a new tab. Thus, the button page remains at the top, and the PDF is open for printing. In order not to press the button twice, I will disable the button like this (I use python):
<input type='submit' value='Factureren' name='submitbutton' id='%s' onclick="javascript:document.getElementById('%s').disabled=true; document.getElementById('%s').className='button_disabled';"> % ((but_id,) *3)
In FF3, this works fine, that is, the form is submitted, the script is executed, and then the button is disabled. In IE, the button just turns off, but the script form is not executed.
Is there a solution to this IE problem?
source share