Named Element IDs Can Be Referenced as JavaScript Globals
BRANK

Did you know that DOM elements with IDs are accessible in JavaScript as global variables? It’s one of those things that’s been around, like, forever but I’m

css-tricks.com
Related Topics: JavaScript Web Standards / Browsers
1 comments
  • HTML 要素の ID 属性に与えられた値は、window オブジェクトにぶら下がるグローバル変数として公開される仕様について。使わないべき機能。