That is correct....if you want to make sure that you are using interoperable anchors, you could use the following codes:
<SCRIPT LANGUAGE="JavaScript">
function getBrowser() {
if (navigator.appName.indexOf("Netscape") !=-1)
if(navigator.appVersion.indexOf("3") != -1)
return 1
if (navigator.appName.indexOf("Netscape") != -1)
if(navigator.appVersion.indexOf("4") != -1)
return 1
if (navigator.appName.indexOf("Microsoft") !=-1)
if(navigator.appVersion.indexOf("3") != -1)
return 2
if (navigator.appName.indexOf("Microsoft") !=-1)
if(navigator.appVersion.indexOf("4") != -1)
return 2
}
if (getBrowser() ==1) document.write("<ILAYER SRC='/cgi-bin/script.cgi?something'></ILAYER>");
if (getBrowser() ==2) document.write("<IFRAME SRC='/cgi-bin/script.cgi?something'></IFRAME>");
</SCRIPT>
Of course...this is a bit messy, since the codes would have to go within the web page and not loaded in the header portion of the file.
Regards,
Eliot Lee
Code:
<SCRIPT LANGUAGE="JavaScript">
function getBrowser() {
if (navigator.appName.indexOf("Netscape") !=-1)
if(navigator.appVersion.indexOf("3") != -1)
return 1
if (navigator.appName.indexOf("Netscape") != -1)
if(navigator.appVersion.indexOf("4") != -1)
return 1
if (navigator.appName.indexOf("Microsoft") !=-1)
if(navigator.appVersion.indexOf("3") != -1)
return 2
if (navigator.appName.indexOf("Microsoft") !=-1)
if(navigator.appVersion.indexOf("4") != -1)
return 2
}
if (getBrowser() ==1) document.write("<ILAYER SRC='/cgi-bin/script.cgi?something'></ILAYER>");
if (getBrowser() ==2) document.write("<IFRAME SRC='/cgi-bin/script.cgi?something'></IFRAME>");
</SCRIPT>
Of course...this is a bit messy, since the codes would have to go within the web page and not loaded in the header portion of the file.
Regards,
Eliot Lee