innerText
How can I push text to another line when adding text with "innerText" ?
const heroMinimize = document.querySelector(".hero.flex h1#hero-minimize");
heroMinimize.innerText="Minimize your tabs. /n Find the trends!";
/n or </br> also appearing in a text instead of pushing the text to another line
1
7 comments
Maria Litvinskaya
4
innerText
Developer Pro
skool.com/developerpro
Learn how to code. Make money. Have fun. Enjoy life.
Leaderboard (30-day)
powered by