I am trying to find a way to prefill an external HTML form with data and then click "Submit" using Javascript. I do not own the website that the form is on, so that makes things difficult. Is there any way to do this?
Asked
Active
Viewed 198 times
0
-
Define "external". Is it embedded within an iframe? Are you accessing it through a Java client? – Imashcha May 25 '16 at 20:37
1 Answers
1
You actually can`t click other people's website using JavaScript. Maybe you can try something using an AJAX calls to send info but its out of the scope of this answer.
If you really plan to click Submit on someone's else form, you can look to headless browsers to fill this purpose. They can access the DOM and manipulate events such as click, load, etc.

Community
- 1
- 1

Cezar Augusto
- 8,794
- 5
- 31
- 36