Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1030 How can I use a different Cascading Style Sheet for the Mac and Windows?

You are here: irt.org | FAQ | JavaScript | Misc | Q1030 [ previous next ]

Try something like:

<html>
<head>
<script language="JavaScript"><!--
if (navigator.appVersion.toLowerCase().indexOf('mac') !=-1)
    document.write('<link rel=stylesheet href="mac.css" type="text/css">');
else
    document.write('<link rel=stylesheet href="windows.css" type="text/css">');
//--></script>
</head>

<body>
...
</body>
</html>

©2018 Martin Webb