This page was translated from English by the community.Learn more and join the MDN Web Docs community.
Document: contentType property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2018년 4월.
Document.contentType 은 document가 렌더링 되는 MIME 타입을 반환하는 읽기 전용 속성입니다.Document.contentType은 HTTP 헤더나 그 외에 MIME 정보 출처에서 나올 수 있으며 브라우저나 확장 프로그램에서 수행하는 자동 타입 변환의 영향을 받을 수 있습니다.
참고 :이 속성은<meta>에 영향을 받지 않습니다.
In this article
값
contentType은 읽기 전용 속성입니다.
명세서
| Specification |
|---|
| DOM> # ref-for-dom-document-contenttype①> |