Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the events that can bubble in java?

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the events that can bubble in java. It is very detailed and has a certain reference value. Friends who are interested must read it!

Each event has an event.bubbles property, so you can see if it can bubble. (Event Interface defined by ref:W3)

Of course, this form has been attached to the details of W3 DOM Level 3 Events:

Event TypeBubbling phaseabort ✗ beforeinput ✔ blur ✗ click ✔ compositionstart ✔ compositionupdate ✔ compositionend ✔ dblclick ✔ error ✗ focus ✗ focusin ✔ focusout ✔ input ✔ keydown ✔ keyup ✔ load ✗ mousedown ✔ mouseenter ✗ mouseleave ✗ mousemove mouseout mouseover mouseup resize scroll select unload wheel

The bubble attribute of Legacy Events (a non-standard legacy event supported by old browsers) is also attached.

Event TypeBubbling phaseDOMActivate ✔ DOMAttrModified ✔ DOMCharacterDataModified ✔ DOMFocusIn ✔ DOMFocusOut ✔ DOMNodeInserted ✔ DOMNodeInsertedIntoDocument ✗ DOMNodeRemoved ✔ DOMNodeRemovedFromDocument ✗ DOMSubtreeModified ✔ keypress ✔

H5 also defines some new events:

Media-related events are not bubbling.

Drag related events dragstart, drag, dragenter, dragexit, dragleave, dragover, drop, dragend are all bubbling

History related event: popstate,hashchange bubbling (starting with window... So what's the point), pagetransition doesn't bubble.

There are many new events in H5, most of which are in the draft stage, so they will not be opened one by one.

In addition, there is a list of events about IE, http://www.feiesoft.com/html/events.html

Event bubbling is the key to our implementation of event proxies (delegates). In avalon1.6, all bubbling events are implemented using event proxies by default!

Var canBubbleUp = {click: true, dblclick: true, keydown: true, keypress: true, keyup: true, mousedown: true, mousemove: true, mouseup: true, mouseover: true, mouseout: true, wheel: true, mousewheel: true, input: true, change: true, beforeinput: true, compositionstart: true, compositionupdate: true, compositionend: compositionend, true: true, select,: true,:, Datasetchanged:true} if (! W3C) {delete canBubbleUp.change delete canBubbleUp.select} / /.... These are all the contents of this article entitled "what are the bubbling events in java?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report