Answers for "html insert html as text and append"

1

insert text html

<object height=20 width=75 type='text/plain' border=0 data="URL/filename.txt"></object>
Posted by: Guest on September-13-2020
0

Append to the text in the <p> tag

const para=document.querySelector('p');
para.innerText +=' how are you';//+= appends
console.log(para.innerText);
Posted by: Guest on December-11-2021

Browse Popular Code Answers by Language