Hacker News new | ask | show | jobs
by zerker2000 4346 days ago
"For any type of a tag, a new node with a name matching the id parameter of the tag is inserted into the default object scope. In other words, <div id=test> will create a global variable test (of type HTMLDivElement), pointing to the DOM object associated with the tag." Did not know this.