0 votes
in JavaScript by
How to write normal text code using JavaScript dynamically?

1 Answer

0 votes
by

The innerText property is used to write the simple text using JavaScript dynamically. Let's see a simple example:

  1. document.getElementById('mylocation').innerText="This is text using JavaScript";   

Related questions

0 votes
asked Oct 9, 2022 in JavaScript by Robin
0 votes
asked Jun 9, 2022 in JavaScript by sharadyadav1986
...