DEV Community

vaibhav bisht
vaibhav bisht

Posted on

how to make the current page active in HTML-CSS with the help of js

Hii, I am new to web development and I am loading my navigation across all webpages with the help of load. Now my question is how can I make the current page active. I have already tried adding the class active, used eventlistener but it doesn't work. The page url changes but the active status remains default. Tell me how can I solve this issue.
Thank you

Top comments (0)