lundi 20 mai 2019

how add element to scrollmenu html with js function

i have a scroll menu , and in my java script file i read some data from database and i want to add this data to the scrollmenu. im very new to web development and i donnt have any notion anout what i have to do. i need for example a funtion that add a new item to the scrollmenu, and it shold be clickable.

this is the html code.

<html>
    <div class="scrollmenu" id = "scroll">
        <a href="#home">Home</a>`      
        <a href="#news">News</a>
        <a href="#contact">Contact</a>
        <a href="#about">About</a>
        <a href="#support">Support</a>
        <a href="#blog">Blog</a>
        <a href="#tools">Tools</a>  
        <a href="#base">Base</a>
        <a href="#custom">Custom</a>
        <a href="#more">More</a>
        <a href="#logo">Logo</a>
        <a href="#friends">Friends</a>
        <a href="#partners">Partners</a>
        <a href="#people">People</a>
        <a href="#work">Work</a>
    </div>

</html>




Aucun commentaire:

Enregistrer un commentaire