Navigator.mimeTypes[] (Collection)

This property returns an array of supported MIME types.

Availability:

JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
Opera - 3.0
JavaScript syntax:-navigator.mimeTypes

The MIME type array is a sub-class of the built-in Array class. It is called a MimeTypeArray.

Here is a list of MIME types supported in recent versions of MSIE and Netscape :

TypeDescription
application/mac-binhex40Macintosh BinHex Archive
application/macbinaryMacBinary application
application/mswordMicrosoft Word Document
application/pdfAdobe Portable Document Format (PDF)
application/postscriptPostScript File
application/rtfRich Text Format File
application/sdpSession Description Protocol
application/smilSMIL Document
application/streamingmediaStandard Streaming Metafile
application/vnd.ms-excelMicrosoft Excel Worksheet
application/vnd.ms-powerpointMicrosoft PowerPoint Presentation
application/vnd.rn-realmediaRealMedia File
application/vnd.rn-realplayerRealPlayer File
application/vnd.rn-realsystem-rjsRealSystem Skin
application/vnd.rn-realsystem-rmxRealSystem Secure Media Clip
application/vnd.rn-rn_music_packageRealJukebox Music Package
application/vnd.rn-rsmlRealSystem ML File
application/wordperfect5.1WordPerfect PC 5.1 Doc
application/x-compressUnix Compressed (.z) Files
application/x-directorShockwave
application/x-dviTeX DVI Document
application/x-javascriptJavaScript Program
application/x-macbinaryMacBinary File
application/x-rtspReal Time Streaming Protocol
application/x-sdpScalable Multicast
application/x-stuffitMacintosh StuffIt Archive
application/x-tarUnix TAR Archive
application/zipZIP Archives
audio/basicULAW/AU Audio
audio/midMIDI
audio/mp3MP3 Audio
audio/mpegMPEG audio stream
audio/mpegurlMP3 PlayLists (.m3u,.pls)
audio/mpgMP3 Audio
audio/scplsMP3 PlayLists (.m3u,.pls)
audio/vnd.qcelpQCP Audio
audio/vnd.rn-realaudioRealAudio Clip
audio/x-aiffAIFF Audio
audio/x-mp3MP3 Audio
audio/x-mpegMPEG audio stream
audio/x-mpegurlMP3 PlayLists (.m3u,.pls)
audio/x-mpgMP3 Audio
audio/x-pn-realaudioRealPlayer File
audio/x-scplsMP3 PlayLists (.m3u,.pls)
audio/x-wavWAV Audio
image/gifGIF Image
image/iefIEF image
image/jpegJPEG Image
image/pictPICT Image
image/pngPNG Image
image/tiffTIFF Image
image/vnd.rn-realflashRealFlash Clip
image/vnd.rn-realpixRealPix Clip
image/x-pictPICT Image
image/x-portable-bitmapPortable Bitmap (PBM)
image/x-portable-graymapPortable Graymap (PGM)
image/x-portable-pixmapPortable Pixmap (PPM)
image/x-quicktimeQuickTime Image
image/x-rgbSGI RGB Image
image/x-xbitmapX Bitmap Image
image/x-xpixmapX-Windows Pixmap
text/htmlHTML Document
text/plainText File
text/vnd.rn-realtextRealText Clip
video/mpegMPEG video/audio stream
video/msvideoMicrosoft Video
video/quicktimeQuickTime Movie
video/vnd.rn-realvideoRealVideo Clip
video/x-msvideoMicrosoft Video

Some MIME types are only supported by Netscape:

TypeDescription
application/fractalsFractal Image Format
application/futuresplashFutureSplash Player
application/gzipapplication/gzip
application/java-archiveJava Archive
application/ms-powerpointapplication/ms-powerpoint
application/octet-streamBinary Executable
application/pre-encryptedPre-encrypted Data
application/vnd.lotus-1-2-3Lotus 123 Document
application/vnd.lotus-approachLotus Approach Document
application/vnd.lotus-freelanceLotus Freelance Document
application/vnd.lotus-organizerLotus Organizer Document
application/vnd.lotus-screencamLotus ScreenCam Movie
application/vnd.lotus-wordproLotus WordPro Document
application/vnd.ms-accessMicrosoft Access Database
application/vnd.ms-scheduleMicrosoft Schedule+ Application
application/x-authorware-mapAuthorware
application/x-compressedapplication/x-compressed
application/x-conferenceapplication/x-conference
application/x-cpioUnix CPIO Archive
application/x-cshC Shell Program
application/x-excelapplication/x-excel
application/x-fortezza-cklCompromised Key List
application/x-gtarGNU Tape Archive
application/x-javascript-configJavaScript Config
application/x-latexLaTeX Document
application/x-ns-proxy-autoconfigProxy Auto-Config
application/x-perlPerl Program
application/x-pkcs7-crlCertificate Revocation List
application/x-pkcs7-mimePKCS7 Encrypted Data
application/x-pkcs7-signaturePKCS7 Signature
application/x-shBourne Shell Program
application/x-sharUnix Shell Archive
application/x-shockwave-flashShockwave Flash
application/x-tclTCL Program
application/x-texTeX Document
application/x-texinfoGNU TeXinfo Document
application/x-zip-compressedZip Compressed Data
audio/rmfaudio/rmf
audio/x-rmfaudio/x-rmf
image/x-cmu-rasterCMU Raster Image
image/x-MS-bmpWindows Bitmap
image/x-photo-cdPhotoCD Image
image/x-portable-anymapPBM Image
image/x-xwindowdumpX Window Dump Image
Netscape/SourceSpecial file type
Netscape/TelnetNetscape/Telnet
Netscape/tn3270Netscape/tn3270
text/x-vcardVCard
video/x-mpeg2MPEG2 Video
video/x-qtcvideo/x-qtc

These MIME types are supported only by MSIE:

TypeDescription
application/applefileAppleSingle file
application/AppleLinkAppleLink Package
application/ArcMacPC ARChive
application/BBEditML Source
application/binaryApplication Binary Data
application/CanvasCanvas Drawing
application/cdfChannels
application/CodeWarriorJava Class File
application/Compact_ProCompact Pro Archive
application/DeArjARJ Archive
application/DiskCopyApple DiskCopy Image
application/EnvoyEnvoy Document
application/ExcelLotus Spreadsheet r2.1
application/FileMaker_ProFileMaker Pro Database
application/FileMaker_Pro_3FileMaker Pro Database
application/FinderOpenType Font
application/FoxBase+DBase Document
application/GraphicConverterAnimated NeoChrome
application/HexEditUntyped Binary Data
application/JPEGViewOS/2 Bitmap
application/MacAmpMPEG-1 Layer 3
application/MacAnim_ViewerDL Animation
application/MacBoozZoo Archive
application/MacLHALHArc Archive
application/macwriteiiMacWrite Document
application/Microsoft_WordWord for Windows Template
application/MoviePlayerDV Video
application/netcdfChannels
application/odaODA Document
application/PageMakerPageMaker 3 Document
application/PF_EncryptPrivate File
application/pgp-keysPGP Key File
application/PhotoshopPhotoShop Document
application/PictureViewerOS/2 Bitmap
application/PlayerPro669 MOD Music
application/QuarkXpressQuarkXpress Document
application/ReplicaReplica Document
application/ResEditResource File
application/self-extractingSelf-Extracting Archive
application/Self_Extracting_ArchiveSelf-Extracting Archive
application/SimpleTextApple documentation file
application/SoftWindowsMS-DOS Executable
application/SoundAppAmiga OctaMed music
application/SoundHackIRCAM Sound
application/StuffItStuffIt Archive
application/StuffIt_ExpanderPackIt Archive
application/SunTarUnix BAR Archive
application/vnd.fdfForms Data Format
application/wafWebsite Archive
application/WordPerfectWordPerfect PC 4.2 Doc
application/x-cdfChannels
application/x-gocserveCompuServe Inbound Link to CIM 3.0
application/x-gzipGZIP File
application/x-hdfHDF Data File
application/x-netcdfChannels
application/x-sgmlSGML Document
application/x-x509-ca-certCertificates
application/xmlHTML Document
audio/aiffAIFF Audio
audio/midiMIDI
audio/wavWAV Audio
audio/x-midiMIDI
audio/x-pn-realaudio-pluginRealPlayer Plugin
image/x-bmpWindows BMP Image
image/x-fitsFlexible Image Transport
image/x-macpaintMacPaint Image
image/x-macpictPICT Picture
image/x-pbmPortable Bitmap
image/x-pgmPortable Graymap
image/x-photoshopPhotoshop Image
image/x-pngPNG Image
image/x-ppmPortable Pixmap
image/x-sgiSGI Image
image/x-targaTarga Truevision Image
image/x-tiffTIFF Image
image/x-xbmX-Windows Bitmap
image/x-xpmX-Windows Pixmap
image/x-xwdX-Windows Dump
image/xbitmapX Bitmap Image
image/xbmX Bitmap Image
message/external-bodyURL Bookmark
text/cdfChannels
text/cssText File
text/javascriptText File
text/JscriptText File
text/urlURL File
text/vbsText File
text/vbscriptText File
text/x-cdfChannels
text/xmlHTML Document
video/aviMicrosoft Video
video/flcFLC Animation
video/x-mpegMPEG video/audio stream
x-world/x-3dmfQuickDraw 3D File
x-world/x-vrmlVRML File

The example inspects the available MIME types. For each one, it will display these properties (note that only one is shown as an example):

type:audio/x-rmf

description:audio/x-rmf

suffixes:rmf

enabledPlugin:[object Plugin]

Warnings:

Example code:

   <!-- Show all mime types installed -->
   <HTML>
   <HEAD>
   </HEAD>
   <BODY>
   <SCRIPT>
   for (var myIndex=0; myIndex<navigator.mimeTypes.length; myIndex++)
   {
   for(var myProperty in navigator.mimeTypes[myIndex])
   {
   document.write(myProperty);
   document.write(":");
   document.write(navigator.mimeTypes[myIndex][myProperty]);
   document.write("<BR>");
   }
   document.write("<HR>");
   }
   </SCRIPT>
   </BODY>
   </HTML>

See also:MimeType object, MimeTypeArray object

Property attributes:

ReadOnly