MimeType(Multipart Internet Mail Extension) °³Ã¼´Â °¢ ¹è¿­º¯¼öÀÇ ¿ä¼Ò·Î, navigator¿Í plugin °³Ã¼ÀÇ ¼Ó¼ºÀÌ´Ù.

Script [propVal=]..propName;
HTML ¾ø´Ù.
Àμö
index : (Àμö)
Á¤¼öÀ̸ç, mimeTypes ¹è¿­º¯¼öÀÇ È£Ãâ ÀμöÀÌ´Ù.
typeString : (¼Ó¼º À̸§)
mimeType.type ¼Ó¼º ¹®ÀÚ¿­ÀÌ´Ù.
propertyName
¾Æ·¡ ¿­°ÅµÇ¾î ÀÖ´Â ¼Ó¼ºµé ÁßÀÇ ÇϳªÀÌ´Ù.
Ư¼º

mimeType °³Ã¼´Â Àбâ Àü¿ëÀ¸·Î Á¢¼ÓÇÑ navigator¿Í plugin °³Ã¼ ¹è¿­º¯¼öÀÇ Á¤ÀÇµÈ Javascript °³Ã¼ÀÌ´Ù.


¿¹Á¦ (JPEGÀÇ ¼Ó¼º)
 Value
navigator.mimeTypes['image/jpeg'].description JPEG Image
navigator.mimeTypes['image/jpeg'].enabledPlugins null
navigator.mimeTypes['image/jpeg'].suffixes jpeg, jpg, jpe, jfif, pjpeg, pjp
navigator.mimeTypes['image/jpeg'].type image/jpeg
Netscape¿¡¼­ ¼Ó¼º ¸ñ·Ï ¿¹Á¦
itypedescriptionsuffixesenabledPlugin.name
0 audio/aiff AIFF aif, aiff LiveAudio

1

audio/wav

WAV wav LiveAudio
2 audio/x-midi MIDI

mid, midi

LiveAudio
3 audio/midi MIDI mid, midi LiveAudio
4 video/msvideo Video for Windows avi NPAVI32 Dynamic Link Library
5 * Netscape Default Plugin   Netscape Default Plugin
6 zz-application/zz-winassoc-TGZ   TGZ None

¼³¸íÀ» À§ÇÑ ¿¹Á¦

oObj.mimeType=

description ¼Ó¼º IE4 NS3
¢¡ Àбâ Àü¿ëÀ¸·Î MIME type À» ¼³¸íÇÏ´Â ¹®ÀÚ¿­À» ¹ÝȯÇÑ´Ù.
¹®¹ý: navigator.mimeTypes[index].description
¹®¹ý: navigator.mimeTypes['image/jpeg'].description
ÄÚµå: document.write(oObj.mimeType.description) °á°ú:
enabledPlugins(Ä÷º¼Ç) ¼Ó¼º IE4 NS3
¢¡ Àбâ Àü¿ëÀ¸·Î MIME type À» ±¸¼º´Â plugins °³Ã¼¸¦ ÂüÁ¶ÇÑ´Ù.
ÇÑ°¡ÁöÀÇ MIME typeÀº ÀÖÀ» ¼ö ÀÖ´Â ¿©·¯°³ÀÇ pluginµé Áß¿¡ À©µµ¿ì ½ÃÀÛÇϸ鼭 ¼³Á¤µÈ ÇÑ°³¸¸ Àû¿ëµÇµµ·Ï ¿¬°áµÈ´Ù.
¹®¹ý: navigator.mimeTypes[index].enabledPlugins
¹®¹ý: navigator.mimeTypes['image/jpeg'].enabledPlugins
ÄÚµå: document.write(oObj.mimeType.enabledPlugins) °á°ú:
name ¼Ó¼º IE5 NS6
¢¡ Àбâ Àü¿ëÀ¸·Î MIME type ÀÇ À̸§À» ¹ÝȯÇÑ´Ù.
¹®¹ý: navigator.mimeTypes[index].name
¹®¹ý: navigator.mimeTypes['image/jpeg'].name
ÄÚµå: document.write(oObj.mimeType.name) °á°ú:
mimeTypes.length ¼Ó¼º IE4 NS3
¢¡ Àбâ Àü¿ëÀ¸·Î MIME type ¹è¿­º¯¼öÀÇ ±æÀ̸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: navigator.mimeTypes.length
ÄÚµå: document.write(oObj.mimeType.length) °á°ú:
suffixes ¼Ó¼º IE4 NS3
¢¡ Àбâ Àü¿ëÀ¸·Î MIME type ÀÌ Àû¿ëµÇ´Â °¡´ÉÇÑ È®ÀåÀÚµéÀ» 'mpeg, mpg, mpe, mpv, vbs, mpegv' ½ÄÀÇ ¹è¿­º¯¼ö·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: navigator.mimeTypes[index].suffixes[.length]
¹®¹ý: navigator.mimeTypes['image/jpeg'].suffixes[.length]
ÄÚµå: document.write(oObj.mimeType.suffixes) °á°ú:
type ¼Ó¼º IE4 NS3
¢¡ Àбâ Àü¿ëÀ¸·Î MIME type ÀÇ À̸§À» 'video/mpeg', 'audio/x-wav' µîÀÇ ¹®ÀÚ¿­·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: navigator.mimeTypes[index].type
¹®¹ý: navigator.mimeTypes['image/jpeg'].type
ÄÚµå: document.write(oObj.mimeType.type) °á°ú:

taint ¸Þ¼­µå(Àü¿ª±â´É¼º) - NS3
¢¡ °³ÀÎ µ¥ÀÌÅÍ º¸È£¸¦ À§ÇÏ¿© Navigator 3¿¡¼­ Tainting Security Model·Î ½ÇÇèÀûÀ¸·Î µµÀԵǾúÀ¸³ª Æó±âµÇ¾ú´Ù.
untaint ¸Þ¼­µå(Àü¿ª±â´É¼º) - NS3
¢¡ °³ÀÎ µ¥ÀÌÅÍ º¸È£¸¦ À§ÇÏ¿© Navigator 3¿¡¼­ Tainting Security Model·Î ½ÇÇèÀûÀ¸·Î µµÀԵǾúÀ¸³ª Æó±âµÇ¾ú´Ù.

°³Ã¼ ¿¹Á¦ (³ªÀÇ ¹Ìµð¾î Ç÷¹ÀÌ¾î ¹öÀüÀº?)

³ªÀÇ ¹Ìµð¾î Ç÷¹À̾î(Windows Media Player)°¡
<SCRIPT language="javascript">
var wMP52=navigator.mimeTypes&&navigator.mimeTypes['application/x-mplayer2']&&
  navigator.mimeTypes['application/x-mplayer2'].enabledPlugin;
var wMP64=navigator.mimeTypes&&navigator.mimeTypes['video/x-ms-wm']&&
  navigator.mimeTypes['video/x-ms-wm'].enabledPlugin&&navigator.mimeTypes['video/x-ms-wmv']&&
  navigator.mimeTypes['video/x-ms-wmv'].enabledPlugin;
</SCRIPT>
<SCRIPT language="VBScript">
On error resume next
wMP52=(IsObject(CreateObject("MediaPlayer.MediaPlayer.1")))
wMP64=(NSPlay.FileName="")
</SCRIPT>
³ªÀÇ ¹Ìµð¾î Ç÷¹À̾î(Windows Media Player)°¡<FONT color=blue>
<SCRIPT language="JavaScript">
if(wMP64) document.write('version 6.4 ÀÌ»óÀÌ´Ù.');
else if(wMP52) document.write('version 5.2 ÀÌ»óÀÌ´Ù.');
else document.write('¼³Ä¡µÇ¾î ÀÖÁö ¾Ê´Ù.');
</SCRIPT>
</FONT>