the javascript below is the line 13 and the h1 is my html tag index.js:13未捕获TypeError:无法在index.js:13处设置null的属性“”innerHTML“” <h1 id="text">javascript practice</h1>
document.getElementById(
我得到了错误的Uncaught TypeError: Cannot set property 'innerHTML' of null为下面的脚本。我在正文后面添加了脚本标记。但我还是得到了错误。我希望在ID为showTextBoxes的div中显示同一页中的文本框。document.writeln('<input type="text" name="Fname