I\'m working on a simple javascript login for a site, and have come up with this:
Login to view!
Put the script directly in your html document. Change the onclick value with the function you want to use. The script in the html will tell the form to submit when the user hits enter or press the submit button.