Gets the Content-Type property in the HTML request or response header.
Syntax
[ v = ] object.contentType
Possible Values
vVariant that receives the text of the content-type header.The property is read-only. The property has no default value.
The property is read-only. The property has no default value.
Example
// 1. Create XDR object xdr = new XDomainRequest(); // 2. Open connection with server using GET method xdr.open("GET", "http://www.contoso.com/xdr.txt"); // 3. Display the content-type alert(xdr.contentType);
Standards Information
There is no public standard that applies to this property.
Applies To
XDomainRequest, XDomainRequest Constructor
See Also
IHTMLXDomainRequest, XDomainRequest, Introducing Cross-domain Request