contentType

Returns document's content type.

MDN Reference