Chat sẽ

Chat sẽ

These methods are used to register behaviors to take effect when the user interacts with the browser, and to further manipulate those registered behaviors. Chat sẽ a handler to an event for the elements.

Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. Remove event handlers previously attached using . The current DOM element within the event bubbling phase. An optional object of data passed to an event method when the current executing handler is bound. Indicates whether the META key was pressed when the event fired. The namespace specified when the event was triggered. The mouse position relative to the left edge of the document.

The mouse position relative to the top edge of the document. If this method is called, the default action of the event will not be triggered. The other DOM element involved in the event, if any. The last value returned by an event handler that was triggered by this event, unless the value was undefined.

Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree. Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. The DOM element that initiated the event. The difference in milliseconds between the time the browser created the event and January 1, 1970. Describes the nature of the event.

For key or mouse events, this property indicates the specific key or button that was pressed. Bind one or two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. Takes a function and returns a new one that will always have a particular context. Attach an event handler for all elements which match the current selector, now and in the future. Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element. Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element. Attach an event handler function for one or more events to the selected elements.

The handler is executed at most once per element per event type. Specify a function to execute when the DOM is fully loaded. Bind two or more handlers to the matched elements, to be executed on alternate clicks. Execute all handlers and behaviors attached to the matched elements for the given event type.