MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2d5fw/ancienttools/p6tllfg/?context=3
r/ProgrammerHumor • u/soap94 • 2d ago
387 comments sorted by
View all comments
969
I use vanilla js, document.getElementById() is what I live for.
64 u/IsTom 2d ago If your HTML element has id you don't event have to getElementById, it's available right there in global namespace as that name. You make button with id hello and can just go ham with hello.click(). I don't think you should do that, but you can. 25 u/DiodeInc 2d ago New obfuscation tactic dropped
64
If your HTML element has id you don't event have to getElementById, it's available right there in global namespace as that name. You make button with id hello and can just go ham with hello.click().
hello
hello.click()
I don't think you should do that, but you can.
25 u/DiodeInc 2d ago New obfuscation tactic dropped
25
New obfuscation tactic dropped
969
u/saig22 2d ago
I use vanilla js, document.getElementById() is what I live for.