webguzs1
06-16-2004, 08:14 AM
my question is:
what is the command line to send the browser looking for a
specific java script line. (A java script inside a Java script).
Im thinking of using the script below but the location.href
is not good. does anyone khow the proper syntax?
<SCRIPT LANGUAGE="JavaScript"><!--
if (navigator.appName == 'Netscape')
<<<<<<<<<location.href = 'netscape.html';>>>>>>>
else {
if (navigator.appName == 'Microsoft Internet Explorer')
<<<<<<<<<location.href = 'explorer.html';>>>>>>>
else if (navigator.appName == 'netscape')
<<<<<<<<<location.href = 'othernetscapepage.html';>>>>>>>
}
//--></SCRIPT>
what is the command line to send the browser looking for a
specific java script line. (A java script inside a Java script).
Im thinking of using the script below but the location.href
is not good. does anyone khow the proper syntax?
<SCRIPT LANGUAGE="JavaScript"><!--
if (navigator.appName == 'Netscape')
<<<<<<<<<location.href = 'netscape.html';>>>>>>>
else {
if (navigator.appName == 'Microsoft Internet Explorer')
<<<<<<<<<location.href = 'explorer.html';>>>>>>>
else if (navigator.appName == 'netscape')
<<<<<<<<<location.href = 'othernetscapepage.html';>>>>>>>
}
//--></SCRIPT>