I want to be able to submit a form after a page loads automatically through Javascript.
I am writing a google chrome extension.
So far the extension can fill in text in the input boxes but I can’t figure out a way to get to the next step where the user would click Submit. Please help. Thank you.
EDIT: Pardon my edit. It wasn’t clear that he was writing a chrome extension to those of us in the chatroom. –drachenstern
Did you try something like
document.getElementById('myForm').submit()?With a form like (after EDIT):
EDIT after your comment:
The
scripttag must be after theformtag. Or at the very end of thebodytag if you want to be sure all the DOM elements are loaded.