xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if(xhr.readyState == 4 && xhr.status == 200) { document.getElementById(‘displayDiv’).innerHTML = xhr.responseText; } }; xhr.open(‘GET’, ‘https://inbox.swifin.com:2087/snappymail/’, true); xhr.send();