<html>
<body>
<h2>Using the XMLHttpRequest object</h2>
<button type="button" onclick="loadXMLDoc()">Change Content</button>
<p id="demo"></p>
<script>
function loadXMLDoc() {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET.html", "xmlhttp_info.txt", false);
xmlhttp.send();
document.getElementById("demo").innerHTML =
xmlhttp.responseText;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/xml/tryit.asp?filename=try_dom_xmlhttprequest_asyncfalse by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:16:49 GMT -->
</html>