Originariamente inviata da techno cosi scrivendo mi da errore come posso inserire sia l'attributo href che target sulla stessa riga? Perché non suddividere banalmente le cose su diverse righe? codice: const el = document.querySelector(".mydiv"); const a = document.createElement("a"); a.setAttribute("href", "..."); a.setAttribute("target", "_Black"); el.appendChild(a); Ciao!
const el = document.querySelector(".mydiv"); const a = document.createElement("a"); a.setAttribute("href", "..."); a.setAttribute("target", "_Black"); el.appendChild(a);
MARCO BREVEGLIERI Software and Web Developer, Teacher and Consultant Home | Blog | Delphi Podcast | Twitch | Altro...
Regole del Forum