javascript DOM事件的一些资料

DOM `Event` interface
Event handlers may be attached to various objects including DOM elements, document, the [window object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects), etc. When an event occurs, an event object is created and passed sequentially to the event listeners.

The DOM `Event` interface is accessible from within the handler function, via the event object passed as the first argument. The following simple example shows how an event object is passed to the event handler function, and can be used from within one such function.

function foo(evt) {
// the evt parameter is automatically assigned the event object
alert(evt);
}

No related content found.

关于 RainZhai

玩的么wande.me,web development machine博主,rain css前端框架作者,blogger,html5游戏爱好者
此条目发表在 javascript & Ajax 分类目录,贴了 标签。将固定链接加入收藏夹。

文章评论 Comments

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>