I have an interesting question about focus on web pages. This is mainly due to mouse and keyboard interaction. Say I have an array of objects on a web page in which you are "Focused" or selected, and there is a way to navigate them using the tab. If an element has a delete button and I click on it, what should happen with the focus?
My theory is that the focus should disappear, because the element that acts on the gain, focuses and subsequently disappears. This creates a strange situation in which focus is then given to the root element, and tabbing then moves to the top element of the page.
I would like to hear some opinions on this matter.
source share