Submitting a form thru JavaScript - TechRepublic
General discussion
October 11, 2001 at 03:17 PM
endgoalfreak

Submitting a form thru JavaScript

by endgoalfreak . Updated 24 years, 1 month ago

I am working on a service to programmatically fill in a user’s login & password for a website and log the user in.

I am writing JavaScript to fill in the login & password and simulate the user submitting the form, but am facing a problem with forms that use as the Submit button. Strangely, this element does not appear in the form.elements array. Going thru the document.body.all array, I did find the element but it is the 55th element in this array of ~119 elements on the www.go.com login page.

Isn’t there an easier way to get the DOM object for this element, and would element.click() work on an element?

Looked thru documentation on Netscape & Microsoft sites, but found no answer.

Thanks in advance…
– EndGoalFreak

This discussion is locked

All Comments