JSFiddle - React, Tailwind, and code Playground
by Damien M
HTML
<body>
<a id="monlien" href="http://www.un_lien_quelconque.com">Un lien</a>
</body>
JavaScript
var link = document.getElementById('monlien');
var envoi = link.getAttribute('href'); // On récupère l'attribut « href »
alert(envoi);
link.setAttribute('href', 'http://www.siteduzero.com'); // On édite l'attribut « href »