To detect if an element has focus, you compare it with the document.activeElement . The following checks if the input text with the .username class has the ...
確定! 回上一頁