R
remi
Hi,
I would like to write a script that will load a js file according to the
browser used.
Here is the suggested code :
****
function detectBrowser()
{
var browser=navigator.appName;
if ((browser=="Netscape"))
{
Load the netscape.js file;
}
else
{
load others.js;
}
}
*****
So, how could I code the "load the *js code" ?
Thanks for your help.
Rémi.
I would like to write a script that will load a js file according to the
browser used.
Here is the suggested code :
****
function detectBrowser()
{
var browser=navigator.appName;
if ((browser=="Netscape"))
{
Load the netscape.js file;
}
else
{
load others.js;
}
}
*****
So, how could I code the "load the *js code" ?
Thanks for your help.
Rémi.