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";   
...