Active Nav Link Indicator with Vanilla Javascript

preview_player
Показать описание
Apply a class to the navigation link for the current page with a few lines of Javascript.

Рекомендации по теме
Комментарии
Автор

The step by step explanation was really great! Thank you

armandoWebDev
Автор

FINALLY I found your video. I was so much looking for this. But other videos I found were so overcomplicated and missing the point. Thank you, very well done.

chooseyourtool
Автор

I love the way that you explain things
as software engineer, we all love simplicity.
thanks for providing such high value to the community

gabrielfono
Автор

Such an amazing and informative video! Thanks so much. I landed up on this channel through your videos on Shaun's channel. Glad I found it!

neelamchaubey
Автор

I saw others solutions, but yours is the most simple and the most well explained of all! Thanks!!!

Pookamensch
Автор

this was the most simplest and on point tutorial on this love from INDIA

siddharththapa
Автор

Your code is see, simple to understand, and the presentation itself is so sweet.

princemalongo
Автор

I found out I could use activePage = window.location.href and use strict equality operator to campare it to each "href" with the same results as yours. Your video just introduced me to Browser Object Model. Thanks a lot.

leonardmbibi
Автор

Thanks so much for this amazing video. JavaScript has been after my life these past few weeks. This solved my problem

petersonokereke
Автор

basically we are highlighting that navlink to which it belongs, its that simple. I will use this forever.

akshayshinde
Автор

This is probably the easiest way I've seen of adding an active class. Instead of going and removing the class from the previously selected link, it skips all that non-sense.Lovely!

kllokoq
Автор

Perfect, exactly what I needed. Thank you!

okaniedavis
Автор

Thank you very much, sir! I was trying to find a solution for three hours, but none of them worked. Finally, this worked perfectly.

sarvesh
Автор

Thank god I found this video. I lost sometime looking for this solution. Thanks Bro!

the-beauty-of-creativity
Автор

You explained it so well and simple. Thank you!

darklordpassy
Автор

This video really helped a lot, thank you!

yanakochubynska
Автор

Thanks so much. This tutorial was really helpful and well explained.

ingridsantos
Автор

Thanks a lot. I thought having an active link status was super easy like 1 css pseudo elements lol. . I found no good tuto on how to do it. Nothing worked until yours. Awsome Channel subbed. Thx.

choanlpoto
Автор

Thank youuuu I struggled a loot with this so thank you 🎉🎉

Amalnajah-bv
Автор

it is so awesome and easy to understand which anyone never told me this video deserve more likes

pikkuk