I have a row where I put a link that comes from firebase
cellName.appendChild(document.createTextNode(childData.foto_url));
I get a link, but that link I have to copy it and put it in the search engine. It is not efficient. I would like to put a:
<a href="https://www.w3schools.com/html/">Pulsa para ver la foto</a>
I do the following but it does not work:
var strMensaje='Pulsa para ver la foto';
var urlFirebase=childData.foto_url;
var urlFinal= strMensaje.link(urlFirebase);
document.getElementById("link").innerHTML=urlFinal;
cellName.appendChild(document.createTextNode(Verás aquí tu link:<div id="opcion2"></div>));
Do you know how to do it?