i have an HTML list with some link:
<ul>
<li><a href="#" name="link1">link1</a></li>
<li><a href="#" name="link2">link2</a></li>
<li><a href="#" name="link3">link3</a></li>
</ul>
Each link has a different name.
In nodeJS, when i click the link i want to print on the console the name of the link that I clicked.
how can i do?
Aucun commentaire:
Enregistrer un commentaire