Hi
I'm using dreamweaver and I'm trying to replicate the effect of the code shown below - that is to dynamically update the contents of a table cell when a user clicks, mouseover etc.
The problem with the code below is that it doesn't work under Netscape. Presumably DreamWeaver has it's own way of doing things now - my HTML is somewhat ancient...
Thanks
<SCRIPT LANGUAGE="JavaScript">
function whatever() {
document.all("ONE".innerText = 'new text';
document.all("TWO".innerText = 'some more new text';
}
</SCRIPT>
<TABLE BORDER=1>
<TR><TD ID="ONE">Original text</TD></TR>
<TR><TD ID="TWO">Original text</TD></TR>
</TABLE>
I'm using dreamweaver and I'm trying to replicate the effect of the code shown below - that is to dynamically update the contents of a table cell when a user clicks, mouseover etc.
The problem with the code below is that it doesn't work under Netscape. Presumably DreamWeaver has it's own way of doing things now - my HTML is somewhat ancient...
Thanks
<SCRIPT LANGUAGE="JavaScript">
function whatever() {
document.all("ONE".innerText = 'new text';
document.all("TWO".innerText = 'some more new text';
}
</SCRIPT>
<TABLE BORDER=1>
<TR><TD ID="ONE">Original text</TD></TR>
<TR><TD ID="TWO">Original text</TD></TR>
</TABLE>