Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In another question on this site, someone recommended creating a bookmark with the following javascript in the URL box to automatically fill in your user name and password on a website in Chrome:


My question is whether there is any way to alter this code so that it sends an "enter" key press to the browser after it enters your user name and password (to eliminate one more step).

share|improve this question
up vote 1 down vote accepted

You could modify the code to look like this:


Just replace your_form with the name of your form.

share|improve this answer

I don't think this is possible, but you can submit the form using JavaScript:


You just need the id of the form you want to submit in JavaScript — if there's no ID, you can use the index of the form (a number greater than or equal to 0). Since this is site specific, just test a bit to see what works.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .