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

vaibhav135 profile image vaibhav bisht ・1 min read

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


Editor guide