zig.com Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h2>The XMLHttpRequest Object</h2>
<p>The getResponseHeader() function is used to return specific header information from a resource, like length, server-type, content-type, last-modified, etc:</p>
<p>Last modified: <span id="demo"></span></p>
<script>
  const xhttp = new XMLHttpRequest();
  xhttp.onload = function () {
    document.getElementById("demo").innerHTML =
      this.getResponseHeader("Last-Modified");
  }
  xhttp.open("GET.html", "ajax_info.txt");
  xhttp.send();
</script>
</body>
<!-- /js/tryit.asp?filename=tryjs_ajax_lastmodified  Thu, 06 Feb 2025 19:15:40 GMT -->
</html>