3 ms·
It's has been explained enough times. It's just that looking things up for yourself seems to have gone out of fashion.
by genezeta 4y ago
It's has been explained enough times. It's just that looking things up for yourself seems to have gone out of fashion.
- spookthesunset 4y agoThat doesn’t help people who stumble upon this when searching for the problem. All the “look it up” response does is make sure the search results are a bunch of content saying “look it up”, which isn’t really that helpful.
- llanowarelves 4y agoThat's a classic. Get my hopes up finding an old forum post asking my question, hoping to find answers. All the answers are "use Google/etc", which is how I got there.
- nkozyra 4y agoIt is explained fairly early in the article. This used to be done quite a lot in the early JS days when scope was kind of thrown out the window (no pun) and you just did whatever dirty thing you needed to in order to make a page work.
- pierrec 4y agolol, I just searched "problem with referencing named element ids as javascript globals": the first result is the linked article and the second result is, you guessed it, this thread with your comment on top.
- scratcheee 4y ago>the person writing about the new discovered weird trick almost always fails to precede the article with a big, red, bold "Please don't ever do this" > It's has been explained enough times. It's just that looking things up for yourself seems to have gone out of fashion. It appears you've countered your own complaint.