@Engineer "Saving bytes" because we must simply write document.getElementById("foo").value(); and "saving calculations" because getElementById is surely speedier than getElementsByTagName and a loop. The getElementsByClassName() method is available on the document It can be easily bypassed using the DOM, for example by creating a hidden