in JavaScript by
Q:
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 and answers

0 votes
asked Mar 24, 2021 in JavaScript by sharadyadav1986
0 votes
asked Mar 24, 2021 in JavaScript by sharadyadav1986
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
...