[Javascript] netscape: how to write to <div> tag??
Anthony E.
apwebdesign at yahoo.com
Tue Jun 26 16:31:51 CDT 2001
I can write to <div id="div1"> in IE4, but not in
Netscape 4.7
I've tried the following without any success...please
help to write to NS 4 <div> ('layers'):
=========
<script language="JavaScript">
<!--
function layer() {
if (!document.all) {
document.layers["div1"].document.write("hello
NS");
} else if (document.all) {
document.all["div1"].innerHTML = "Hello IE";
}
}
// -->
</script>
=========
<a href="javascript:layer();">Click</a><br>
<div id="div1">
div 1 layer
</div>
=========
=====
--
Anthony E.
AP Web Design
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
More information about the Javascript
mailing list