S
S
Sasha2017-07-09 22:24:30
Web development
Sasha, 2017-07-09 22:24:30

How to set tabindex in popup?

Good afternoon.
Using the web with hotkeys is not new, and there are still implementation questions.
There are many interactive elements on the page that can be cycled through with the TAB key, thus each of them will be in focus.
Let's say the 4th out of 10 is a button that calls a popup or a hidden block that also has interactive elements.
The popup opens and when you press TAB, the focus is not on the elements in it, but on those that follow the button that calls our modal window.
How to solve this problem?
The use of tabindex did not give a positive result.
Transferring focus using JS to a popup seems like a bad idea, since the popup itself is not interactive and will not be able to get focus, and assigning it to the first child element is already a crutch.
Code sketch here

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2019-01-03
@opium

Put a certificate, since they are free now
And redirect from http to http

B
Boris Syomov, 2019-01-03
@kotomyava

Use some kind of let's encrypt, for example to get a free certificate.

Y
Yunus Gaziev, 2017-07-10
@BBoyJuss

Here is a great solution for Accessible Modal Dialogs -- A11ycasts #19

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question