62,073
社区成员
发帖
与我相关
我的任务
分享
<BODY>
<div onclick="javascript:alert('hello');">
<a href='http://www.163.com'>NetEasy</a>
</div>
</BODY>
<head runat="server">
<title>无标题页</title>
<script type="text/javascript">
function aa(obj)
{
if(event.srcElement==obj)
{
alert('hello');
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div onclick="javascript:aa(this);">
<a href="http://www.163.com">NetEasy</a>
</div>
</form>
</body>
</html>
<head runat="server">
<title>无标题页</title>
<script type="text/javascript">
function aa(obj)
{
if(event.srcElement==obj)
{
alert('hello');
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div onclick="javascript:aa(this);">
<a href="http://www.163.com">NetEasy</a>
</div>
</form>
</body>
</html>