<html>
<head>
<title>b</title>
<script language = "javascript">
function A(){
document.getElementById("divId").innerText ="點了AAAAAAAAAAA";
}
function B(){
document.getElementById("divId").innerText ="點了BBBBBBBBBB";
}
</script>
</head>
<body>
現在頁面沒有遭到js的影響,很安靜!<br>
<a href="#" onclick="javascript:A();">影響A</a>
<a href="#" onclick="javascript:B();">影響B</a>
<div id="divId"></div>
</body>
</html>
</body>
</html>