<head>
<script>
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
document.getElementById("para").innerHTML =xhr.responseText;
}
};
xhr.open('GET', 'Intro.html', true);
xhr.send();
</script>
</head>
<body >
<div id="Para"></div>
</body>
I get this Error
**Uncaught TypeError:** Cannot set property 'innerHTML' of nullxhr.onreadystatechange @ index.html:11
<script>
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
document.getElementById("para").innerHTML =xhr.responseText;
}
};
xhr.open('GET', 'Intro.html', true);
xhr.send();
</script>
</head>
<body >
<div id="Para"></div>
</body>
I get this Error
**Uncaught TypeError:** Cannot set property 'innerHTML' of nullxhr.onreadystatechange @ index.html:11