Introduction
Imagine you're building a complex web application. Pre-built events like "click" and "submit" are great, but what if you ne...
For further actions, you may consider blocking this person and/or reporting abuse
Without any reference to bubbling or the ability to cancel events you could have also just called it "events". What distinguishes DOM events (i.e., in-built and custom events) from ordinary events are, however, those special abilities. So it would be great to also list them.
Thanks for the insightful perspective! You're absolutely right about the unique characteristics of DOM events, like bubbling and the ability to cancel them, setting them apart from ordinary events
Hello Madhu! This is an inspiring article, and we at Codemischief Software Solutions would love to repost it on our official page with due credits for more reach.
We are Codemischief Software Development Solutions and I am the Strategy personnel at the firm.
Would love to connect!
LinkedIn : [(linkedin.com/company/codemischief-...]
Website : [(codemischief.tech/)]
Personal : [(linkedin.com/in/manish-kadur)]
Regards,
Manish Kadur
That's amazing!!
Thank you so much for the support!, this really motivate me to do more good work :)
I have been writing JavaScript for some time now but this is the first time I am witnessing custom events. This article is so mind-blowing. JavaScript is so powerful when you know how to use it. Thanks for this.
I really appreciate your kind words <3
Thank you so much for reading :)
WOW! that is nuts and I like it. this is definitely food for thought.
I've always like the event dispatcher model (of running the queue when any JS reaches global scope).
Thank you for posting this, the ability to route events through the DOM node tree is really cool!
Thanks for reading :)
I didn't knew this was possible, thank you for writing this!
Glad you've learned something new!
Thanks for the feedback :)
Does it have to be attached to DOM node or it can be used on ordinary class?
Nope, innerText and textContent are meant for DOM nodes, not regular classes. They're perfect for updating text content in HTML elements using JavaScript.
Thanks for sharing! I like this one 👌
Glad you liked it :)
Good one.
Thanks, Bhavy!!
Thanks you!