Javascript - Browser Detect - Wav Files - TechRepublic
General discussion
May 15, 2000 at 01:45 AM
megashub

Javascript – Browser Detect – Wav Files

by megashub . Updated 25 years, 9 months ago

A user replied to my question about detecting the browser and using one piece of code for one, and one piece of code for the other with this – which is fine:

function Detect()
{
if(navigator.appName== “Microsoft Internet Explorer”)
{
Put your media player code for internet
explorer between these braces
}
else {
Put your media player code for
Netscape Navigator between these braces
}
}

However I also have the problem where IE’s player and Quicktime both play the WAV’s automatically once their downloads have completed. Is there any way to turn that off in the code?

There must be as most sites don’t have that problem.

This discussion is locked

All Comments