<html>
<head>
<title>访问HTML元素的内容</title>
<script language="JavaScript">
function changeText(){
myH2.innerText = "更改文字内容";
}
function changeHTML(){
myH2.innerHTML = "<marquee>更改标签内容</marguee>"
}
function showContent1(){
alert(myP.innerText + "\n" + myP.innerHTML);
}
function showContent2(){
alert(myP.outerText + "\n" + myP.outerHTML);
}
</script>
</head>
<body >
</form>
</body>
</html>