Is it possible to get all the necessary information to log in using javascript?
I have a form object:
var form = getForm(); //some special function :-)
console.log(form.action); // "https://example.com/login"
console.log(form.method); // post
//next step get inputs for login name and psw, for example: name and ps
So, I can simulate post
https://example.com/login
post
name: admin
psw: harrypotter
BUT! Some web pages have another secret attribute stored in form html, like this:
action: login
I am looking for some automated method which can extract all informations need for login.
Do you have some idea how??
Thanks for any help.