How to get the focussed element on a webpage using JavaScript?
Originally Published Here ๐!
To get the focussed element in a webpage using JavaScript, you can use the activeElement property in the global document object.
For example, Consider you have a lot of anchor tags in your webpage and needed to find out ...
melvingeorge-me.hashnode.dev1 min read