News for hackers. Stuff that matters.
Re:Don't Disable Buttons by andrewflnr on Thursday November 09, 2023 @12:59PM (#38208398)
No one is inputting directly to window.document, so in the scenario in the article you need to move the browser focus separately anyway. You'll notice I specifically said "where to read from", which is a distinctly different question from where input goes. Yes, you'll want to bring them together pretty often, but that's still better than dumping the user at the document root anytime a developer does something normal and predictable like disabling a button.

There are no comments on this comment yet.