document.getElementById('username').value="moo"
document.forms[0].submit()
More Related Contents:
- Remove element by id
- Check if an image is loaded (no errors) with jQuery
- Is there a spec that the id of elements should be made global variable?
- onKeyPress Vs. onKeyUp and onKeyDown
- Chrome extension – retrieving global variable from webpage
- Javascript/DOM: How to remove all event listeners of a DOM object?
- How can I loop through ALL DOM elements on a page?
- Manipulating innerHTML removes the event handler of a child element? [duplicate]
- What is the “hasClass” function with plain JavaScript?
- Is there a DOM event that fires when an HTML select element is closed?
- How to use getElementsByClassName in javascript-function? [duplicate]
- Get element’s CSS selector (when it doesn’t have an id)
- Set custom attribute using JavaScript
- How to access HTML element without ID?
- Native JS equivalent to jQuery delegation
- Why is the variable holding the input value always logged as empty?
- Is it possible to get reference to comment element/block by JavaScript?
- scrollIntoView Scrolls just too far
- Focus Input Box On Load
- Converting a recursive function into an asynchronous CPS implementation (javascript)
- In JavaScript, what is the best way to convert a NodeList to an array?
- How to clone or re-dispatch DOM events?
- jQuery/Javascript – How to wait for manipulated DOM to update before proceeding with function
- Is it possible to get element’s numerical index in its parent node without looping?
- Is there any way of passing additional data via custom events?
- getElementsByClassName() with two classes
- What is the difference between `firstChild` and `firstElementChild`?
- JavaScript: get the current executing node? [duplicate]
- How do I find the DOM node that is at a given (X,Y) position? (Hit test)
- Why is iframe.contentWindow == null?