I have a question about Bubble Process in Javascript Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live! The [wrap] tag is in the process of being burninatedHow do JavaScript closures work?Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?How do I remove a property from a JavaScript object?Which equals operator (== vs ===) should be used in JavaScript comparisons?JavaScript closure inside loops – simple practical exampleHow do I include a JavaScript file in another JavaScript file?What does “use strict” do in JavaScript, and what is the reasoning behind it?How to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?“Thinking in AngularJS” if I have a jQuery background?
Maximum summed powersets with non-adjacent items
Do jazz musicians improvise on the parent scale in addition to the chord-scales?
Most bit efficient text communication method?
Fundamental Solution of the Pell Equation
How would a mousetrap for use in space work?
For a new assistant professor in CS, how to build/manage a publication pipeline
How come Sam didn't become Lord of Horn Hill?
Why are both D and D# fitting into my E minor key?
Significance of Cersei's obsession with elephants?
Does classifying an integer as a discrete log require it be part of a multiplicative group?
What do you call the main part of a joke?
An adverb for when you're not exaggerating
8 Prisoners wearing hats
When the Haste spell ends on a creature, do attackers have advantage against that creature?
Is there any way for the UK Prime Minister to make a motion directly dependent on Government confidence?
If my PI received research grants from a company to be able to pay my postdoc salary, did I have a potential conflict interest too?
How could we fake a moon landing now?
Can you use the Shield Master feat to shove someone before you make an attack by using a Readied action?
On SQL Server, is it possible to restrict certain users from using certain functions, operators or statements?
Would "destroying" Wurmcoil Engine prevent its tokens from being created?
Trademark violation for app?
Wu formula for manifolds with boundary
Is the Standard Deduction better than Itemized when both are the same amount?
Did MS DOS itself ever use blinking text?
I have a question about Bubble Process in Javascript
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!
The [wrap] tag is in the process of being burninatedHow do JavaScript closures work?Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?How do I remove a property from a JavaScript object?Which equals operator (== vs ===) should be used in JavaScript comparisons?JavaScript closure inside loops – simple practical exampleHow do I include a JavaScript file in another JavaScript file?What does “use strict” do in JavaScript, and what is the reasoning behind it?How to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?“Thinking in AngularJS” if I have a jQuery background?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
When using event of function in addEventlistener(), does the bubble process run when using event.target?
javascript
add a comment |
When using event of function in addEventlistener(), does the bubble process run when using event.target?
javascript
Almost all the events "bubble" , If that's what you wanted to know
– Thanveer Shah
Mar 22 at 9:44
Can you stop bubbleing while using event.target?
– 박재균
Mar 22 at 9:47
Yes, you can check my answer
– Thanveer Shah
Mar 22 at 9:50
The answer to the actual question is no, the bubble process starts when the event fires.
– Teemu
Mar 22 at 9:58
For example,Does that mean you can't stop the bubble process while using " let something = event.target.parentNode"
– 박재균
Mar 23 at 7:46
add a comment |
When using event of function in addEventlistener(), does the bubble process run when using event.target?
javascript
When using event of function in addEventlistener(), does the bubble process run when using event.target?
javascript
javascript
edited Apr 3 at 19:27
marc_s
586k13011281272
586k13011281272
asked Mar 22 at 9:40
박재균박재균
31
31
Almost all the events "bubble" , If that's what you wanted to know
– Thanveer Shah
Mar 22 at 9:44
Can you stop bubbleing while using event.target?
– 박재균
Mar 22 at 9:47
Yes, you can check my answer
– Thanveer Shah
Mar 22 at 9:50
The answer to the actual question is no, the bubble process starts when the event fires.
– Teemu
Mar 22 at 9:58
For example,Does that mean you can't stop the bubble process while using " let something = event.target.parentNode"
– 박재균
Mar 23 at 7:46
add a comment |
Almost all the events "bubble" , If that's what you wanted to know
– Thanveer Shah
Mar 22 at 9:44
Can you stop bubbleing while using event.target?
– 박재균
Mar 22 at 9:47
Yes, you can check my answer
– Thanveer Shah
Mar 22 at 9:50
The answer to the actual question is no, the bubble process starts when the event fires.
– Teemu
Mar 22 at 9:58
For example,Does that mean you can't stop the bubble process while using " let something = event.target.parentNode"
– 박재균
Mar 23 at 7:46
Almost all the events "bubble" , If that's what you wanted to know
– Thanveer Shah
Mar 22 at 9:44
Almost all the events "bubble" , If that's what you wanted to know
– Thanveer Shah
Mar 22 at 9:44
Can you stop bubbleing while using event.target?
– 박재균
Mar 22 at 9:47
Can you stop bubbleing while using event.target?
– 박재균
Mar 22 at 9:47
Yes, you can check my answer
– Thanveer Shah
Mar 22 at 9:50
Yes, you can check my answer
– Thanveer Shah
Mar 22 at 9:50
The answer to the actual question is no, the bubble process starts when the event fires.
– Teemu
Mar 22 at 9:58
The answer to the actual question is no, the bubble process starts when the event fires.
– Teemu
Mar 22 at 9:58
For example,Does that mean you can't stop the bubble process while using " let something = event.target.parentNode"
– 박재균
Mar 23 at 7:46
For example,Does that mean you can't stop the bubble process while using " let something = event.target.parentNode"
– 박재균
Mar 23 at 7:46
add a comment |
1 Answer
1
active
oldest
votes
Almost all the events "Bubble"
But, if you want to stop an event from "bubbling" then you can use:
event.stopPropagation()
If you want to stop the event flow from event target to top element in DOM, event.stopPropagation() method stops the event to travel to the bottom to top.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55296745%2fi-have-a-question-about-bubble-process-in-javascript%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Almost all the events "Bubble"
But, if you want to stop an event from "bubbling" then you can use:
event.stopPropagation()
If you want to stop the event flow from event target to top element in DOM, event.stopPropagation() method stops the event to travel to the bottom to top.
add a comment |
Almost all the events "Bubble"
But, if you want to stop an event from "bubbling" then you can use:
event.stopPropagation()
If you want to stop the event flow from event target to top element in DOM, event.stopPropagation() method stops the event to travel to the bottom to top.
add a comment |
Almost all the events "Bubble"
But, if you want to stop an event from "bubbling" then you can use:
event.stopPropagation()
If you want to stop the event flow from event target to top element in DOM, event.stopPropagation() method stops the event to travel to the bottom to top.
Almost all the events "Bubble"
But, if you want to stop an event from "bubbling" then you can use:
event.stopPropagation()
If you want to stop the event flow from event target to top element in DOM, event.stopPropagation() method stops the event to travel to the bottom to top.
answered Mar 22 at 9:50
Thanveer ShahThanveer Shah
1,017314
1,017314
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55296745%2fi-have-a-question-about-bubble-process-in-javascript%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Almost all the events "bubble" , If that's what you wanted to know
– Thanveer Shah
Mar 22 at 9:44
Can you stop bubbleing while using event.target?
– 박재균
Mar 22 at 9:47
Yes, you can check my answer
– Thanveer Shah
Mar 22 at 9:50
The answer to the actual question is no, the bubble process starts when the event fires.
– Teemu
Mar 22 at 9:58
For example,Does that mean you can't stop the bubble process while using " let something = event.target.parentNode"
– 박재균
Mar 23 at 7:46