showing results for - "javascript add navbar link"
Oscar
09 Aug 2019
1var link = document.createElement('a');
2link.classList.add('menu__link');
3link.href = '#section1';
4link.textContent = 'Section 1';
5document.getElementById('navbar__list').appendChild(link);
similar questions
queries leading to this page
javascript add navbar link