When the page is loaded, what will be shown in the element with id "myDiv"?
<div id="myDiv">Original content</div>
window.addEventListener('load', function() {
document.getElementById('myDiv').innerText = 'Changed content';
});
When the page is loaded, what will be shown in the element with id "myDiv"?
<div id="myDiv">Original content</div>
window.addEventListener('load', function() {
document.getElementById('myDiv').innerText = 'Changed content';
});