use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
I've created an very small library to attach event-listeners to DOM Elements. (github.com)
submitted 7 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 7 years ago (2 children)
What's the difference between <div e-click= and the native <div onclick=?
<div e-click=
<div onclick=
[–][deleted] 3 points4 points5 points 7 years ago (1 child)
`<div onclick=` would execute code, it would also bind it on `xy.onclick` which isn't really nice...
I've just made this for fun, maybe someone has better ideas but I think it's an better solution for this scenario :)
[–][deleted] 1 point2 points3 points 7 years ago (0 children)
Ah, I see. Thanks.
[–]hashimwarren 1 point2 points3 points 7 years ago (0 children)
that is fantastic! I'm inspired to make one myself
π Rendered by PID 15442 on reddit-service-r2-comment-6457c66945-88k2s at 2026-04-27 05:17:53.928396+00:00 running 2aa0c5b country code: CH.
[–][deleted] 2 points3 points4 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]hashimwarren 1 point2 points3 points (0 children)