JS中如何得到触发事件的属性?

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../EaseUI/Cks/jquery.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">

function chang() {
            var evt = event || window.event;
            alert(evt.propertyName);
        }

function addCssSty() {
            $("#input_a").css("background-color", "#F0F0F0").css("border", "0");
        }

</script>
</head>
<body>

<form id="form1" runat="server">
    <div>
    <input type="text" onpropertychange="chang(event);" id="input_a" />
    <input type="button" onclick="addCssSty();" value="改变样式" />
    </div>
    </form>

</body>
</html>

上一篇:利用Python实现字幕挂载,把字幕文件与视频合并


下一篇:js 正则学习小记之NFA引擎