Advertisement
ASP_Volume3 Internet/ Browsers/ HTML #46787

Change text within table cells

How do I change text within table cells? The following will only work in MSIE4: Found at: http://www.irt.org

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
<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>

If you want to clear a listbox, 
you call the method ListBox.Clear, right? 
Not in VB7, I found this out the frustrating
way. To clear a listbox, you need to use 
the listbox's item collection's Clear 
method. Let's recap: 
VB6 - ListBox.Clear
VB7 - ListBox.Items.Clear
Original Comments (3)
Recovered from Wayback Machine