determining browser then performing function
by "Mike Dahlor" <mdahlor(at)bebsoft.com>
|
| Date: |
Wed, 21 Feb 2001 17:09:34 -0600 |
| To: |
"hwg-techniques List" <hwg-techniques(at)hwg.org> |
| References: |
smginc |
| |
todo: View
Thread,
Original
|
|
A little quest I am on if I may intrude. I have the following script
(received from this gracious list) that helped me see the browser and call
the appropriate style sheet. I would like the same ability to call a
function. In a nut shell, if netscape do this "function popupWin() {" if
not then ignore it. Can the below script be altered to do that or does
anyone have another handy that can do the job? Thanks!
<SCRIPT>
if (document.layers) //If Netscape
{
document.write("<LINK REL='stylesheet' TYPE='text/css'
HREF='../scripts/nsbody.css'>");
}
else if (document.all) //IE 4 & 5
{
document.write("<LINK REL='stylesheet' TYPE='text/css'
HREF='../scripts/iebody.css'>");
}
</SCRIPT>
HWG hwg-techniques mailing list archives,
maintained by Web Professional Association - 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.