Click to Rate and Give Feedback
MSDN
MSDN Library
contentType Property

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.

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker