I don't think this possible using Javascript. I've certainly never seen it done - and looking in the navigator object (where it might have been) shows nothing.
I've been thinking about this a little more over the weekend...
You could get the headers of an AJAX request using getResponseHeader("content-type") on the XHRequest object. Note this will not work with the file:// prototcol (so do it against a proper web server). So you could file off a simple XHR using javascript - and interrogate the headers that way.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.