I'm pretty new to Javascript and I'm sure this is an easy fix, but I can't figure it out.
I'm using a slightly modified version of the code from this page and I want to make the form work by entering the information and pressing enter rather than having to click the button.
FYI I've read this thread and can't work out my own answer from there. I tried changing the type to "submit" from "button" but then the login didn't work. I've also tried changing "onlick" to "onsubmit" and had the same problem.