function getEventTargetId(event){ event=event||window.event; var target=event.target||event.srcElement; return target.id;}参考:http://topic.csdn.net/u/20090101/11/ad3d4b0f-a320-453b-a49f-41ef277de082.html