This site is mobile accessible. Press the "Tap Here" button to use a different font-size.
Smartphone icons created by Freepik - Flaticon
The getResponseHeader() function is used to return specific header information from a resource, like length, server-type, content-type, last-modified, etc:
Last modified:
const xhttp=new XMLHttpRequest(); xhttp.onload = function() { // display the "last modified header of the XMLHttpRequest Object document.getElementById("demo").innerHTML = this.getResponseHeader("Last-Modified"); } // defines the XMLHttpRequest Object xhttp.open("GET", "ajax_info.txt"); xhttp.send();