JSFiddle - React, Tailwind, and code Playground
HTML
<a href="mailto:[email protected]">[email protected]</a>
<a href="mailto:[email protected]">[email protected]</a>
<p id="demo"></p>
JavaScript
var a = document.getElementsByTagName('a');
for(var i = 0; i < a.length; i++){
alert(a[i]);
}