Hey gang,
I'm trying to have a certain piece of html be written into a document
depending on the browser (specifically, Netscape). Anyway, I have the
following INSIDE the html (nested in a table) and wonder if this is
incorrect. Can someone give me some pointers? It's been a while since
I've done any javascripting and this will help so much. Thank you!!
<script language="javas cript">
<!-- hide javascript
if (navigator.appN ame == 'Netscape'){
document.write( '<TD align=center height=250><img
src=media/copyright.gif width=260 height=13 alt= border=0>';
}
else {
document.write( '<TD align=center><i mg src=media/copyright.gif
width=260 height=13 alt= border=0>';
}
// done hiding -->
</SCRIPT>
I'm trying to have a certain piece of html be written into a document
depending on the browser (specifically, Netscape). Anyway, I have the
following INSIDE the html (nested in a table) and wonder if this is
incorrect. Can someone give me some pointers? It's been a while since
I've done any javascripting and this will help so much. Thank you!!
<script language="javas cript">
<!-- hide javascript
if (navigator.appN ame == 'Netscape'){
document.write( '<TD align=center height=250><img
src=media/copyright.gif width=260 height=13 alt= border=0>';
}
else {
document.write( '<TD align=center><i mg src=media/copyright.gif
width=260 height=13 alt= border=0>';
}
// done hiding -->
</SCRIPT>
Comment