README.md
December 5, 2022 ยท View on GitHub
Description
How do I change text within table cells? The following will only work in MSIE4:
Found at: http://www.irt.org
More Info
| Submitted On | |
| By | Found on the Web |
| Level | Unknown |
| User Rating | 5.0 (10 globes from 2 users) |
| Compatibility | |
| Category | Internet/ Browsers/ HTML |
| World | Java |
| Archive File |
Source Code
<SCRIPT LANGUAGE="JavaScript">
function myClick3() {
document.all("ONE").innerText = 'This is table cell ONE';
document.all("TWO").innerText = 'This is table cell TWO';
}
</SCRIPT>
<TABLE BORDER=1>
<TR><TD ID="ONE">This is the text in ONE</TD></TR>
<TR><TD ID="TWO">This is the text in TWO</TD></TR>
</TABLE>
<FORM><INPUT TYPE="BUTTON" VALUE="Click Me" onClick="myClick3()"></FORM>