我知道这可能很简单,但我不知道。我正在尝试将来自JavaScript函数onload事件的一些文本插入到td中。
<html>
<head>
<script type="text/javascript">
function insertText ()
{
//function to insert any text on the td with id "td1"
}
</script>
</head>
<body onload="javascript:insertText()">
<table>
<tr>
<td id="td1">
</td>
</tr>
</table>
</body>
</html>
有什么帮助吗?