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

Q459 How can I show a different background image depending on the browser?

You are here: irt.org | FAQ | JavaScript | Image | Q459 [ previous next ]

Try something like this:

<SCRIPT LANGUAGE="JavaScript"><!--
If (navigator.appName == 'Microsoft Internet Explorer')
    document.write('<BODY BACKGROUND="image1.gif">');
else
    document.write('<BODY BACKGROUND="image2.gif">');
//--></SCRIPT>

©2018 Martin Webb