How to fill in form field, and submit, using javascript?

document.getElementById('username').value="moo"
document.forms[0].submit()

Leave a Comment