Test JavaScript, czy element ma się skupić
var myElement = document.getElementById('myID');
if(myElement === document.activeElement){
//myElement Has Focus
}
Grepper
var myElement = document.getElementById('myID');
if(myElement === document.activeElement){
//myElement Has Focus
}