If I have an html document whose rough structure is
It would be something like:
document.getElementById("username").value="Username"; document.forms[0].submit()
Or similar edit: you guys are too fast ;)