<html>
<head>
<script type="text/javascript">
function doevent() {
var val = arguments[0] || "";
var ev = window.event || arguments[1];
var src = ev.srcElement || ev.target;
alert(src.innerHTML + val);
}
</script>
</head>
<body>
<a href="javascript:void(0)" οnclick="doevent(43214, event)" title="fddsa">
sfsdfas
</a>
</body>
</html>
javascript 中通用的event 代码(ie || w3c)
最新推荐文章于 2017-07-30 15:25:00 发布