I have a disabled button I want to click with Javascript.
The following function works in Chrome but not in Firefox.
The problem with Firefox: Firefox javascript is too slow.
The button is still disabled if the code wants to click it. How to click the button when it is enabled?
function enable_and_click() {
document.getElementById('button1').disabled=false;
document.getElementById('button1').click();
}