<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head><body>
<script language=javascript>
function abc(){
newRow = document.all.aa.insertRow()
newCell = newRow.insertCell()
newCell.innerHTML = document.all.bb.value
newCell = newRow.insertCell()
newCell.innerHTML = document.all.bb.value
newCell = newRow.insertCell()
newCell.innerHTML = document.all.bb.value
}
</script>
<table id=aa border=1></table>
<input id=bb type=text value="±í¸ñµÄÄÚÈÝ"><input type=button value=»­³ö onclick=abc()>
</body>
</html>
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head><body>
<script language=javascript>
function abc(){
newRow = document.all.aa.insertRow()
newCell = newRow.insertCell()
newCell.innerHTML = document.all.bb.value
newCell = newRow.insertCell()
newCell.innerHTML = document.all.bb.value
newCell = newRow.insertCell()
newCell.innerHTML = document.all.bb.value
}
</script>
<table id=aa border=1></table>
<input id=bb type=text value="±í¸ñµÄÄÚÈÝ"><input type=button value=»­³ö onclick=abc()>
</body>
</html>
解决方案 »
- JY游戏开发,案例之 《下到一百层》,欢迎大家品赏。
- 模拟可以输入select标签问题
- 提供第三方控件资源下载‘TipTool.js’,美化界面,网页制作必备工具
- vml实现流程图设计器
- 如何用javascirpt和html实现在当前document里获取、设置另一个document里的元素?
- 很简单的js问题,请教一下
- ★ IE6 怪事,不拖窗口也能onresize? 还是死循环! 高分请高手解答!
- flash滚动条控制 div
- 请各位推荐几个比较好的学习JavaScript的网站好吗?最好能下载各种特效JavaScript源代码的!
- 使用ActiveXObject("Wscript.Shell")读取本地注册表,如何去掉那个安全的提示
- 除了我不会,谁都会的简单问题
- 帮忙!很简单的问题
{
newCell = aa.rows[i].insertCell(x);
newCell.innerHTML = document.all.bb.value
}
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head><body>
<script language=javascript>
function abc(){
newRow = document.all.aa.insertRow()
newCell = newRow.insertCell()
newCell.innerHTML = document.all.bb.value
}
function cba()
{
if(document.all.aa.rows.length==0)
abc()
else
{
for(i=0;i<aa.rows.length;i++)
{
newCell = aa.rows[i].insertCell(aa.rows[i].cells.length);
newCell.innerHTML = document.all.bb.value
}
}
}
</script>
<table id=aa border=1></table>
<input id=bb type=text value="±í¸ñµÄÄÚÈÝ"><input type=button value=»­³ö onclick=abc()>
<input name="button" type=button onClick=cba() value=插入列>
</body>
</html>