<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function getVal(obj)
{
alert('a中的值是:'+obj.innerText);
obj.innerText="查看过了!";
}
</script>
<title>例子</title>
</head>
<body>
<div>
<font onclick="getVal(this)">未查看</font>
</div>
</body>
</html>
<head>
<script type="text/javascript">
function getVal(obj)
{
alert('a中的值是:'+obj.innerText);
obj.innerText="查看过了!";
}
</script>
<title>例子</title>
</head>
<body>
<div>
<font onclick="getVal(this)">未查看</font>
</div>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货