check if an input element has focus

Solutions on MaxInterview for check if an input element has focus by the best coders in the world