How can I add a link in j.s | SoloLearn: Learn to code for FREE!

+2

How can I add a link in j.s

5/29/2020 1:37:43 PM

Haris Akbari 🇦🇫

1 Answer

New Answer

+7

const a = document.createElement('a'); a.innerText = 'link'; a.href = "https://google.com"; document.body.appendChild(a)