The innerText property is used to write the simple text using JavaScript dynamically. Let’s see a simple example:
document.getElementById('mylocation').innerText="This is text using JavaScript";
The innerText property is used to write the simple text using JavaScript dynamically. Let’s see a simple example:
document.getElementById('mylocation').innerText="This is text using JavaScript";