4 ms·
If the problem is shifting focus to the document, is it not better to: before disabling the button, with the attribute, create an element that contains informat
by rickstanley 3y ago
If the problem is shifting focus to the document, is it not better to: before disabling the button, with the attribute, create an element that contains information about the action in progress and focus on this element via `element.focus();`, and then add the "disabled" attribute?
- g-b-r 3y agoI agree, you're avoiding disabling the button to cater for screen readers, at that point go one step further and move to an (invisible?) "Form sent" element ..