getResponseHeader
Retrieves the field value from the response that is contained in the specified header.
Declaration
String getResponseHeader(
in String header
);DOMString? getResponseHeader(
DOMString header
);Parameters
- header:
The header field name. An exception is raised if this value is not
nullorString.
Return Value
The header field value.
Discussion
If the header value is Set-Cookie or Set-Cookie2, the value inside the header will not be returned. This method returns null if no response has been received or if the specified header doesn’t exist.