|
|
|
|
|
для: вялый
(17.12.2008 в 21:11)
| | СПАСИБО! | |
|
|
|
|
|
|
|
для: valerastorm
(17.12.2008 в 20:52)
| |
newCell.onclick=function(){alert('w1qqq');}
|
| |
|
|
|
|
|
|
| <html>
<body>
<script>
function fun()
{
var ty = document.getElementById('maintable')
var newRow=ty.insertRow(-1);
var newCell = newRow.insertCell(-1);
newCell.innerHTML='va'
newCell.onClick="alert('w1qqq')"
}
</script>
<table id='maintable' border=2 >
<tr >
<td>111</td><td>222</td>
</tr>
</table>
<form>
<button onClick="fun()"> but </button>
</form>
</body>
</html> | |
|
|
|
|