XMLHttpRequest Properties: responseType

By: Dusty Arlia
Published on Monday, November 10, 2014 at 6:36 PM
Last Updated on Sunday, July 19, 2015 at 10:29 AM
Total Updates: 2

The responseType property of the XMLHttpRequest JavaScript object holds the desired HTTP response type. Acceptable types include text, document, arraybuffer, and blob. The default is the empty string which gets interpreted as text. When you use this property, use the response property to get the web server's HTTP response (responseText and responseXML throw exceptions).