i want to read specific headers for current html page, this code below read all headers, how i can read a specific header having the tag?
var req = new XMLHttpRequest();
req.open('GET', document.location, false);
req.send(null);
var headers = req.getAllResponseHeaders().toLowerCase();
alert(headers);
This code return this result: date: mon, 11 may... last-modified: mon, 11 m... accept range: bytes ...etc..
is there a method to read a specific field in headers ?