老尼姑,看招
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>document.getElementById</title>
</head>
<body>
<p id="con">JavaScript</p>
<input type='button' value='点击修改'
onmouseover='remov()' onmouseout='remov2()' />
<script type="text/javascript ">
var mychar= document.getElementById('con');
document.write("<br>结果:"+mychar); //输出获取的P标签。
function remov3()
{
mychar.innerHTML='还敢点进来,那我不客气了!龟儿子';
}
function remov()
{
mychar.innerHTML='臭小子';
}
</script>
</body>
</html>