w3resource logo

JavaScript Client Objects

JavaScript Navigator Object : mimeTypes Property

Secondary Nav


The mimeTypes property of the navigator object is used to get a list of all the MIME types supported by the browser. It returns an array of all MIME types supported by the browser.


Implemented in JavaScript 1.1



Example of Navigator Object : mimeTypes Property

The following web document shows the number of mimeTypes used.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>JavaScript navigator  object - mimeTypes property example</title>
<h1 style="color: red">JavaScript navigator object : mimeTypes property</h1>
<hr />
<script type="text/javascript">
//This is done to make the following JavaScript code compatible to XHTML. <![CDATA[
document.write("No. of mimetypes : " + navigator.mimeTypes.length);

View the example of navigator object's mimeTypes property in the browser

Supported Browser

Internet Explorer 7 Firefox 3.6 Google Chrome 7 Safari 5.0.1 Opera 10
Yes Yes Yes Yes Yes


See also :

JavaScript Client side objects, methods, properties.

JavaScript Core objects, methods, properties.

Join our Question Answer community to learn and share your programming knowledge.