JavaScript can be contained in a variety of file types. The one that you use, depends on what you plan to do with the script and the kind of environment it is being used in. Here is a summary of the file types you are likely to encounter:
Extension | Description |
---|---|
.123 | Lotus 123 Document |
.3dmf | QuickDraw 3D File |
.509 | Certificates |
.669 | 669 MOD Music |
.8med | Amiga OctaMed music |
.8svx | Amiga OctaMed music |
.aam | Authorware |
.aas | Authorware |
.ai | Postscript Document |
.aif | AIFF Audio |
.aifc | AIFF Audio |
.aiff | AIFF Audio |
.al | Amiga OctaMed music |
.ani | Animated NeoChrome |
.apr | Lotus Approach Document |
.arc | PC ARChive |
.arj | ARJ Archive |
.arr | Animated NeoChrome |
.art | Animated NeoChrome |
.au | AU Audio/ULAW Audio |
.avi | Microsoft Video |
.bar | Unix BAR Archive |
.bga | OS/2 Bitmap |
.bin | MacBinary File |
.binary | Untyped Binary Data |
.bmp | OS/2 Bitmap |
.bmp | Windows Bitmap |
.bw | OS/2 Bitmap |
.c | Text File |
.cdf | Channel definition file |
.cer | Certificates |
.cfg | Configuration file |
.cgi | Common Gateway Interface dynamic page |
.cgm | Animated NeoChrome |
.ckl | Compromized Key List |
.class | Java Class File |
.clp | Animated NeoChrome |
.com | MS-DOS Executable |
.cpio | Unix CPIO Archive |
.cpt | Compact Pro Archive |
.crl | Certificate Revocation List |
.crt | Certificates |
.csh | C Shell Program |
.css | Text File |
.ct | Animated NeoChrome |
.cut | Animated NeoChrome |
.cvs | Canvas Drawing |
.dbf | DBase Document |
.dcr | Shockwave/Director |
.dcx | Animated NeoChrome |
.dir | Shockwave/Director |
.dl | DL Animation |
.dll | MS-DOS Executable |
.doc | Microsoft Word Document |
.dot | Word for Windows Template |
.dqy | Excel Worksheet |
.dv | DV Video |
.dvi | TeX DVI Document |
.dxr | Director |
.enc | Pre-encrypted Data |
.eps | Encapsulated Postscript document |
.epsf | Encapsulated Postscript document |
.evy | Envoy Document |
.exe | MS-DOS Executable |
.fdf | Forms Data Format |
.fif | Fractal Image Format |
.fit | Flexible Image Transport |
.flc | DV Video/FLC Animation |
.fli | DV Video/FLC Animation |
.fm | FileMaker Pro Database |
.fm3 | FileMaker Pro Database |
.fts | Animated NeoChrome |
.gem | Animated NeoChrome |
.gif | GIF Image |
.gl | DL Animation |
.grp | Animated NeoChrome |
.gtar | GNU Tape Archive |
.gz | GNU Zip Compressed Data |
.h | Text File |
.hcom | Amiga OctaMed music |
.hdf | HDF Data File |
.hpgl | Animated NeoChrome |
.hqx | Macintosh BinHex Archive |
.htc | Microsoft HTML Component |
.htm | HTML web page |
.html | HTML web page |
.ic1 | Animated NeoChrome |
.ic2 | Animated NeoChrome |
.ic3 | Animated NeoChrome |
.icn | Animated NeoChrome |
.ico | Animated NeoChrome |
.ief | IEF image |
.iff | Animated NeoChrome |
.ilbm | Animated NeoChrome |
.image | Apple DiskCopy Image |
.img | Animated NeoChrome |
.ini | Text File |
.iqy | Excel Worksheet |
.jar | Java archive file |
.java | Java source file |
.jfif | OS/2 Bitmap |
.jfx | TIFF Image |
.jpe | JPEG Image |
.jpeg | JPEG Image |
.jpg | JPEG Image |
.js | JavaScript include file |
.jsc | JavaScript configuration file |
.kar | MIDI |
.latex | LaTeX Document |
.lbm | Animated NeoChrome |
.lck | Old style configuration file |
.lha | LHArc Archive |
.lwp | Lotus WordPro Document |
.lzh | LHArc Archive |
.m15 | DV Video/MPEG video/audio stream |
.m1a | MPEG audio stream |
.m1a | MPEG video/audio stream |
.m1s | DV Video/MPEG audio stream |
.m1v | MPEG video/audio stream |
.m2s | DV Video |
.m2v | DV Video |
.m3u | MP3 PlayLists |
.m75 | DV Video/MPEG video/audio stream |
.mac | MacPaint Image/PICT Image |
.mda | Microsoft Access Database |
.mdb | Microsoft Access Database |
.mde | Microsoft Access Database |
.med | Amiga OctaMed music |
.mid | MIDI Music |
.midi | MIDI Music |
.ml | ML Source |
.mocha | JavaScript Program |
.mod | Amiga OctaMed music |
.moov | QuickTime Movie |
.mov | QuickTime Movie |
.mp2 | MPEG video/audio stream |
.mp2v | MPEG2 Video |
.mp3 | MPEG-1 Layer 3 audio stream/MPEG Movie |
.mpa | MPEG video/audio stream |
.mpe | MPEG video/audio stream |
.mpeg | MPEG video/audio stream |
.mpegv | MPEG Video |
.mpg | MPEG video/audio stream |
.mpm | MPEG video/audio stream |
.mpv | MPEG video/audio stream |
.mpv2 | MPEG2 Video |
.msp | Animated NeoChrome |
.mtm | 669 MOD Music |
.mw | MacWrite Document |
.mwii | MacWrite Document |
.neo | Animated NeoChrome |
.nsc | application/x-conference |
.nst | Amiga OctaMed music |
.obj | MS-DOS Executable |
.oda | ODA Document |
.okt | Amiga OctaMed music |
.or2 | Lotus Organizer Document |
.or3 | Lotus Organizer Document |
.org | Lotus Organizer Document |
.otf | OpenType Font |
.out | Untyped Binary Data |
.ovl | MS-DOS Executable |
.p7c | PKCS7 Encrypted Data |
.p7m | PKCS7 Encrypted Data |
.p7s | PKCS7 Signature |
.pac | A proxy or parameter package file (also a NeoChrome image file) |
.pbm | Portable Bitmap |
.pc1 | Animated NeoChrome |
.pc2 | Animated NeoChrome |
.pc3 | Animated NeoChrome |
.pcd | PhotoCD Image |
.pcs | Animated NeoChrome |
.pct | PICT Image |
.pcx | Animated NeoChrome |
Portable Document Format | |
.pf | Private File |
.pgm | Portable Graymap |
.pgp | PGP Key File |
.pi1 | Animated NeoChrome |
.pi2 | Animated NeoChrome |
.pi3 | Animated NeoChrome |
.pic | PICT Image |
.pict | PICT Image |
.pit | PackIt Archive |
.pkg | AppleLink Package |
.pl | Perl Program |
.pls | MP3 PlayLists |
.plt | Animated NeoChrome |
.pm | Animated NeoChrome |
.pm3 | PageMaker 3 Document |
.pm4 | PageMaker 3 Document |
.pm5 | PageMaker 3 Document |
.png | PNG Image |
.pnm | PBM Image |
.pnt | MacPaint Image |
.pntg | OS/2 Bitmap/MacPaint Image |
.pot | Microsoft PowerPoint Show |
.ppa | Microsoft PowerPoint Show |
.ppm | Portable Pixmap |
.pps | Microsoft PowerPoint Show |
.ppt | Microsoft PowerPoint Show |
.pre | Lotus Freelance Document |
.prz | Lotus Freelance Document |
.ps | Postscript Document |
.psd | PhotoShop Document |
.pt4 | PageMaker 3 Document |
.pt5 | PageMaker 3 Document |
.pwz | Microsoft PowerPoint Show |
.pxr | PhotoShop Document |
.qcp | QCP Audio |
.qdv | Animated NeoChrome |
.qif | OS/2 Bitmap |
.qt | QuickTime Movie |
.qtc | video/x-qtc |
.qti | QuickTime Image |
.qtif | QuickTime Image |
.qxd | QuarkXpress Document |
.qxt | QuarkXpress Document |
.ra | RealAudio Clip |
.ram | RealPlayer File |
.ras | CMU Raster Image |
.raw | Animated NeoChrome |
.rf | RealFlash Clip |
.rgb | SGI Image/RGB Image |
.rgba | SGI Image |
.rif | Animated NeoChrome |
.rjs | RealSystem Skin |
.rle | Animated NeoChrome |
.rm | RealMedia File |
.rmf | audio/rmf/audio/x-rmf |
.rmm | RealPlayer File |
.rmp | RealJukebox Music Package |
.rmx | RealSystem Secure Media Clip |
.rnx | RealPlayer File |
.rp | RealPix Clip |
.rpl | Replica Document |
.rpm | RealPlayer Plugin |
.rsc | Resource File |
.rsml | RealSystem ML File |
.rsrc | Resource File |
.rt | RealText Clip |
.rtf | Rich Text Format File |
.rts | Real Time Streaming Protocol |
.rtsp | Real Time Streaming Protocol |
.rv | RealVideo Clip |
.s3m | 669 MOD Music |
.sam | Lotus WordPro Document |
.sc2 | Microsoft Schedule+ Application |
.scc | Animated NeoChrome |
.scd | Microsoft Schedule+ Application |
.scg | Animated NeoChrome |
.sch | Microsoft Schedule+ Application |
.sci | Animated NeoChrome |
.scm | Lotus ScreenCam Movie |
.scp | Animated NeoChrome |
.scr | Animated NeoChrome |
.scu | Animated NeoChrome |
.sd2 | DV Video |
.sdp | Session Description Protocol/Scalable Multicast |
.sea | Self-Extracting Archive |
.sf | IRCAM Sound |
.sgi | OS/2 Bitmap/SGI Image |
.sgm | SGML Document |
.sgml | SGML Document |
.sh | Bourne Shell Program |
.shar | Unix Shell Archive |
.shp | Animated NeoChrome |
.shtm | HTML web page with server-side include |
.shtml | HTML web page with server-side include |
.sit | Macintosh StuffIt Archive |
.sit | StuffIt Archive |
.six | Animated NeoChrome |
.smf | MIDI |
.smi | SMIL Document |
.smil | SMIL Document |
.snd | Amiga OctaMed music |
.snd | AU Audio |
.snd | ULAW Audio |
.spc | Animated NeoChrome |
.spl | FutureSplash Player |
.sr | Animated NeoChrome |
.ssm | Standard Streaming Metafile |
.stm | HTML web page with server-side include |
.sun | Animated NeoChrome |
.sup | Animated NeoChrome |
.svx | Amiga OctaMed music |
.swf | Shockwave Flash |
.tar | Unix Tape Archive |
.targa | OS/2 Bitmap/Targa Truevision Image |
.taz | Unix Compressed (.z) Files |
.tcl | TCL Program |
.tex | TeX Document |
.texi | GNU TeXinfo Document |
.texinfo | GNU TeXinfo Document |
.text | Text File |
.tga | OS/2 Bitmap/Targa Truevision Image |
.tgz | GZIP File |
.tif | TIFF Image |
.tiff | TIFF Image |
.tny | Animated NeoChrome |
.ttc | OpenType Font |
.ttf | OpenType Font |
.txt | Text File |
.ul | AU Audio |
.ulw | AU Audio |
.url | URL Bookmark |
.uu | UUEncoded Data |
.uue | UUEncoded Data |
.vbs | VB Script in text file/MPEG Video |
.vcf | VCard |
.vew | Lotus Approach Document |
.vff | Animated NeoChrome |
.vfw | Microsoft Video |
.vga | OS/2 Bitmap |
.vob | DV Video |
.voc | Amiga OctaMed music |
.w51 | WordPerfect PC 5.1 Doc |
.waf | Website Archive |
.wav | WAV Audio |
.web | Compiled JavaScript and HTML, ready to be served by NES |
.wiz | Word Document |
.wk1 | Lotus Spreadsheet r2.1 |
.wk3 | Lotus 123 Document |
.wk4 | Lotus 123 Document |
.wks | Lotus Spreadsheet r2.1 |
.wmf | Windows MetaFile image |
.wp | WordPerfect PC 5.1 Doc |
.wp4 | WordPerfect PC 4.2 Doc |
.wp5 | WordPerfect PC 5.1 Doc |
.wp6 | WordPerfect PC 4.2 Doc |
.wpd | WordPerfect Document |
.wpg | Animated NeoChrome |
.wpm | WordPerfect PC 4.2 Doc |
.wrl | VRML File |
.ws | Windows Script File (beta versions of WSH) |
.wsf | Windows Script File used by WSH |
.wsh | WSH control file |
.wve | Amiga OctaMed music |
.x10 | X-Windows Dump |
.x11 | X-Windows Dump |
.xbm | X-Windows Bitmap |
.xlc | Excel Worksheet |
.xlm | Excel Worksheet |
.xls | Excel Worksheet |
.xls | Microsoft Excel Worksheet |
.xlt | Excel Worksheet |
.xlw | Excel Worksheet |
.xm | 669 MOD Music |
.xml | XML (Extensible Markup Language) Document |
.xpm | X-Windows Pixmap |
.xsl | XML style sheet Document |
.xwd | X-Windows Dump |
.z | Unix Compressed Files |
.zip | ZIP Archives |
.zoo | Zoo Archive |
Beware of the .pac file extension. It is a proxy.pac auto-config file but it also represents an obscure image format supported by some plugins.
Prev | Home | Next |
FIELDSET.margin | Up | File object |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |