<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效|Linkweb.cn/Js|---访问表格的每个TD</title>
</head>
<script>
function showText(){
  var oTbody=table1.children.item(0);
  for(var i=0;i<oTbody.children.length;i++)
  {
     var oTR=oTbody.children.item(i);
         for(var j=0;j<oTR.children.length;j++)
           text1.value+="第"+(i+1)+"行;"+"第"+(j+1)+"列的内容是:"+oTR.children.item(j).innerHTML+"\n";
  }
}
</script>
<body>
<table border="1" ></textarea>
</body>
</html>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-01-17
  • 2021-05-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
相关资源
相似解决方案