JavaScript and Plugins

Checking to see if client is capable of displaying QuickTime movies:


myMimetype=
  navigator.mimeTypes["video/quicktime"]

if (myMimetype)
   document.writeln("Click 
	 <A HREF='movie.qt'>here</A> 
	 to see a " + myMimetype.description)
else
   document.writeln("Too bad, can't show 
		you any movies.")