How to submit form via Javascript in iPhone SDK app?

I need to submit a form uploaded to UIWebview(iPhone sdk / Objective c) using Javascript injection. I used document.form.submit()that does not work.

0
source share
1 answer

To access your form, you need to pull it from the array of forms. Use the form name attribute as an array key.

It should look like this:

document.forms['formName'].submit();
0
source

All Articles