i got the username and password using javascript, but the code wont work for all sites. gmail uses a different id's than face books, and many sites probably do also, so how can make the code work for any site logging in?

If you want it to work for ANY site, you're going to have to do something completely different. Perhaps create an array of sites and then store the fields to that object. You could search for each "password" input and then try to move up to the previous input since most of the time it's username then password fields.

well i know how to store them for any site, but getting them is the issue, because the getelementbyname text is different for tons of sites, i dont know how i can get it for any site, apple somehow does and i think dolphin browser can to.
–
MaximilianSep 2 '12 at 2:21