I have a textbox, I want to check if it has focus (User clicks on textbox) in plain javascript . How can I do that in javascript not JQuery ?
Asked
Active
Viewed 76 times
2
-
does `document.activeElement` work? – zero298 Mar 03 '14 at 19:10
-
yup, he but needed to google :/ – Phil Mar 03 '14 at 19:11