Why does this JavaScript snippet fail in Netscape 6?
by "Mike Taylor" <lonewolf(at)one.net>
|
| Date: |
Sat, 11 Nov 2000 15:37:29 -0500 |
| To: |
<hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
Why does the following JavaScript snippet not work in Netscape 6, preview
release 3? It fails to load either piece.
It does in previous versions of Netscape and versions of IE 3 +. Basically,
we load a different stylesheet for IE 3 users:
<script language="JavaScript">
<!--
if (document.images)
{
document.write("<link rel='stylesheet' href='basic_style_sheet.css'>");
}
else
{
document.write("<link rel='stylesheet' href='ie3users.css'>");
}
//-->
</script>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.