'a' element works on active only
- if I code a click function on element in javascript but it works on active state only not permanently
- I tried to search in google but I can't get any description about it
- I attached a code snippet for example:
document.querySelector('a').addEventListener('click',function(){
//do something but its working on active state only
});