Android Question How to use javascript to click a especific button in html page

Discussion in 'Android Questions' started by miguelcleman, Feb 7, 2015.

  1. miguelcleman

    miguelcleman Member Licensed User

    Hi,

    How to use javascript to click the button named "send" in html page example (the html page have many submit buttons)

    The code bellow is not working :

    javascript=""
    javascript=javascript&"document.form.focus();"
    javascript=javascript&"document.form.submit();"
    WebViewExtras1.ExecuteJavascript(javascript)

    The htm page example :

    <td>
    <input type="submit" name="sigappend" value="Test1" />
    <input type="submit" name="html_addr_search" value="Test2" />
    <input type="submit" name ="draft" value="Test3" />
    <input type="submit" name="send" value="Test4" />
    </td>

    Thanks!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice