为甚第二个原来输出结果是“undefined”
<body>
<h2 id="con">javascript</h2>
<p id="jpt"> JavaScript是一种</p>
<script type="text/javascript">
var mytr=document.getElementById('con');
document.write("原来:"+mytr.HTML+"<br>");
mytr.HTML="next text";
document.write("后来:"+mytr.HTML+"<br>");
var ppt=document.getElementById('jpt');
document.write("原来:"+ppt.HTML+"<br>");
ppt.HTML="duibuqi";
document.write("后来:"+ppt.HTML);
</script>
</body>
有错吗?为什么输出的结果不理想