Ciao a tutti come posso aggiungere piu attributi ad un tag ad esempio:
cosi scrivendo mi da errore come posso inserire sia l'attributo href che target sulla stessa riga?codice:const el = document.querySelector(".mydiv"); el.appendChild(document.createElement("a")).setAttribute("href", "...").setAttribute("target", "_Black");