<html>
<head>
<script language="javascript">
window.onload=function(){
var obj=document.getElementById("give");
obj.onclick=showCard;
};
//showCard写好... function showCard(){
alert();
}
</script>
</head>
<body>
<a id="give" href="#">click here </a>
</body>
</html>
<head>
<script language="javascript">
window.onload=function(){
var obj=document.getElementById("give");
obj.onclick=showCard;
};
//showCard写好... function showCard(){
alert();
}
</script>
</head>
<body>
<a id="give" href="#">click here </a>
</body>
</html>
<head>
<script language="javascript">
function showCard(){
obj=document.getElementById("give").innerHTML;
//showCard写好...
alert(obj);
}
</script>
</head>
<body>
<a id="give" href="#" onclick="showCard()">click here </a>
</body>
</html>