How to submit a form through Javascript in an iPhone SDK application?
I need to post a form loaded in UIWebview
(iPhone sdk/Objective c) through Javascript injection. I used 开发者_StackOverflow中文版document.form.submit()
which is not working.
To access your form you need to pull it from the forms array. Use form's name attribute as array key
.
This should look like:
document.forms['formName'].submit();
精彩评论