News for hackers. Stuff that matters.
Re:Named element IDs can be referenced as JavaScript globals by nkozyra on Tuesday September 27, 2022 @12:05PM (#32997206)
It 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.

There are no comments on this comment yet.