<input type="button" name="Submit" value="点击 1"
 onclick="alert(document.all.aa.innerText)">或者<table width="300" border="1" id=table1><input type="button" name="Submit" value="点击 1" 
 onclick="alert(document.all.table1.rows[0].cells[0].innerText)">

解决方案 »

  1.   

    <form name="form1" method="post" action="">
    <table width="300" border="1">
      <tr>
        <td id=aa>aa</td>
        <td id=bb>小明</td>
        <td id=cc>2-1</td>
      </tr>
    </table>
      <input type="button" name="Submit" value="点击 1" onclick="document.all.aa.innerHTML='小兰'" >
      <input type="button" name="Submit2" value="点击 2" >
      <input type="button" name="Submit3" value="点击3" >
    </form>
      

  2.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body>
    <form name="form1" method="post" action="">
    <table width="300" border="1" id="table1">
      <tr>
        <td id=aa>小兰</td>
        <td id=bb>小明</td>
        <td id=cc>2-1</td>
      </tr>
    </table>
      <input type="button" name="Submit" value="点击 1" onClick="alert(document.all.aa.innerText);" >
      <input type="button" name="Submit2" value="点击 2" onClick="alert(document.all.table1.rows[0].cells[1].innerText);" >
      <input type="button" name="Submit3" value="点击3" onClick="alert(document.all.table1.rows[0].cells[2].innerText);">
    </form></body>
    </html>
      

  3.   

    <input type="button" name="Submit" value="点击 1"
     onclick="document.all.aa.innerHTML = '<marquee>'+ document.all.aa.innerText +'</maqruee>'">