【提问】两个窗口之间增加行和列?
window.open(页面2)
在页面2内 onclick为页面1增加行和列
PS:一个页面的话:
<html>
<head>
<script>
function Add()
{
var tbody1 = document.getElementById("tbody1");
var tr = document.createElement("<tr>");
var td = document.createElement("<td>");
var text = document.createTextNode("新增的行");
td.appendChild(text);
tr.appendChild(td);
tbody1.appendChild(tr);
}
</script>
</head>
<body>
<table id="table1" border=1>
<tbody id="tbody1">
</table>
<input type="button" onclick="Add()" value="Add">
</body>
</html>