JSFiddle - React, Tailwind, and code Playground
HTML
<div id="MyElement"></div>
<br/>
<input type="button" value="Click to load" onclick="loadPage();"/>
CSS
#MyElement {
width: 100px;
height: 100px;
border: 1px solid blue;
}
JavaScript
function loadPage() {
var req = new XMLHttpRequest();
req.open('GET', 'https://aviability.com/flight-status/status-oa141-olympic-air', true);
req.onreadystatechange = function (aEvt) {
if (req.readyState == 4 && req.status == 200) {
MyElement.innerHTML = 'This would be the loaded page';
}
};
req.send(null);
}