Why Nostr? What is Njump?
2023-07-17 07:32:59

Manuel Matuzović on Nostr: Here’s a job interview question for you: When you click a button and call the ...

Here’s a job interview question for you: When you click a button and call the showModal() method to open a modal <dialog>, where does the focus go by default, and how can you move it elsewhere?

Can you imagine a job interviewer caring about accessibility and HTML? Me neither, but the question is interesting nevertheless. I didn't know the answer, so I tested it.

https://www.matuzo.at/blog/2023/focus-dialog/
Author Public Key
npub1u8999w8pzdt23c237jmerlxsgd7g39qt4jt5d85jtrch56vqp3tsud06cd