Is it possible to focus on a using JavaScript
focus() function?
I have a
-
2020-11-22 14:48
document.getElementById('test').onclick = function () {
document.getElementById('scripted').focus();
};
div:focus {
background-color: Aqua;
}
Element X (not focusable)
Element Y (user or script focusable)
Element Z (script-only focusable)
Set Focus To Element Z