Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I define a software event as any state of a program to which we can probably respond. In JavaScript, how does event delegation differs from more simple and probably more common event handling patt...
#8: Post edited
- I define a software event as any state of a program to which we can probably respond.
- In JavaScript, how does _event delegation_ differs from more simple and probably more common event handling patterns such as:
- * `window.addEventListener('DOMContentLoaded', () => {} );`
- * `window.addEventListener('load', () => {} );`
* `window.setTimeout( () => {}, MILLISECONDS);`* `window.setInterval( () => {}, MILLISECONDS;`- The terminology of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it more complex so to need terms such as delegation/propagation/bubbling, etc.
- I define a software event as any state of a program to which we can probably respond.
- In JavaScript, how does _event delegation_ differs from more simple and probably more common event handling patterns such as:
- * `window.addEventListener('DOMContentLoaded', () => {} );`
- * `window.addEventListener('load', () => {} );`
- The terminology of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it more complex so to need terms such as delegation/propagation/bubbling, etc.
#7: Post edited
I define a software event as any state of a program (possibly excluding starting the program), to which we can probably respond.In JavaScript, how does _event delegation_, as an event handling pattern, differs from more simple and probably more common event handling patterns such as:- * `window.addEventListener('DOMContentLoaded', () => {} );`
- * `window.addEventListener('load', () => {} );`
- * `window.setTimeout( () => {}, MILLISECONDS);`
- * `window.setInterval( () => {}, MILLISECONDS;`
The terminology of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it more complex so to need terms such as delegation/target/propagation/bubbling, etc.
- I define a software event as any state of a program to which we can probably respond.
- In JavaScript, how does _event delegation_ differs from more simple and probably more common event handling patterns such as:
- * `window.addEventListener('DOMContentLoaded', () => {} );`
- * `window.addEventListener('load', () => {} );`
- * `window.setTimeout( () => {}, MILLISECONDS);`
- * `window.setInterval( () => {}, MILLISECONDS;`
- The terminology of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it more complex so to need terms such as delegation/propagation/bubbling, etc.
#6: Post edited
- In JavaScript, how does _event delegation_, as an event handling pattern, differs from more simple and probably more common event handling patterns such as:
- * `window.addEventListener('DOMContentLoaded', () => {} );`
- * `window.addEventListener('load', () => {} );`
- * `window.setTimeout( () => {}, MILLISECONDS);`
- * `window.setInterval( () => {}, MILLISECONDS;`
- The terminology of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it more complex so to need terms such as delegation/target/propagation/bubbling, etc.
- I define a software event as any state of a program (possibly excluding starting the program), to which we can probably respond.
- In JavaScript, how does _event delegation_, as an event handling pattern, differs from more simple and probably more common event handling patterns such as:
- * `window.addEventListener('DOMContentLoaded', () => {} );`
- * `window.addEventListener('load', () => {} );`
- * `window.setTimeout( () => {}, MILLISECONDS);`
- * `window.setInterval( () => {}, MILLISECONDS;`
- The terminology of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it more complex so to need terms such as delegation/target/propagation/bubbling, etc.
#5: Post edited
- In JavaScript, how does _event delegation_, as an event handling pattern, differs from more simple and probably more common event handling patterns such as:
- * `window.addEventListener('DOMContentLoaded', () => {} );`
- * `window.addEventListener('load', () => {} );`
- * `window.setTimeout( () => {}, MILLISECONDS);`
- * `window.setInterval( () => {}, MILLISECONDS;`
The terminology (and maybe also the syntax) of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it more complex so to need terms such as delegation/propagation/bubbling, etc.
- In JavaScript, how does _event delegation_, as an event handling pattern, differs from more simple and probably more common event handling patterns such as:
- * `window.addEventListener('DOMContentLoaded', () => {} );`
- * `window.addEventListener('load', () => {} );`
- * `window.setTimeout( () => {}, MILLISECONDS);`
- * `window.setInterval( () => {}, MILLISECONDS;`
- The terminology of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it more complex so to need terms such as delegation/target/propagation/bubbling, etc.
#4: Post edited
- In JavaScript, how does _event delegation_, as an event handling pattern, differs from more simple and probably more common event handling patterns such as:
- * `window.addEventListener('DOMContentLoaded', () => {} );`
- * `window.addEventListener('load', () => {} );`
- * `window.setTimeout( () => {}, MILLISECONDS);`
- * `window.setInterval( () => {}, MILLISECONDS;`
The terminology (and maybe also the syntax) of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it much more complex so to need terms such as delegation/propagation/bubbling, etc.
- In JavaScript, how does _event delegation_, as an event handling pattern, differs from more simple and probably more common event handling patterns such as:
- * `window.addEventListener('DOMContentLoaded', () => {} );`
- * `window.addEventListener('load', () => {} );`
- * `window.setTimeout( () => {}, MILLISECONDS);`
- * `window.setInterval( () => {}, MILLISECONDS;`
- The terminology (and maybe also the syntax) of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it more complex so to need terms such as delegation/propagation/bubbling, etc.
#3: Post edited
What is the main difference between event delegation to other event handling approaches in JavaScript?
- What is the main difference between event delegation to other event handling patterns in JavaScript?
#2: Post edited
What is the main difference between event delegation to other event handling methods in JavaScript?
- What is the main difference between event delegation to other event handling approaches in JavaScript?
#1: Initial revision
What is the main difference between event delegation to other event handling methods in JavaScript?
In JavaScript, how does _event delegation_, as an event handling pattern, differs from more simple and probably more common event handling patterns such as: * `window.addEventListener('DOMContentLoaded', () => {} );` * `window.addEventListener('load', () => {} );` * `window.setTimeout( () => {}, MILLISECONDS);` * `window.setInterval( () => {}, MILLISECONDS;` The terminology (and maybe also the syntax) of event delegation is significantly more complex than of these and I hope to get an answer from which it will be clear to me what is the main reason that makes it much more complex so to need terms such as delegation/propagation/bubbling, etc.