the page has the html element or hasn't - objective c

Posted by Can on Stack Overflow See other posts from Stack Overflow or by Can
Published on 2010-05-27T11:08:34Z Indexed on 2010/05/27 11:11 UTC
Read the original article Hit count: 113

Filed under:
|
|
|

hi,

i try to find the web page has the html element or not. i use if condition, like;

    if([webView stringByEvaluatingJavaScriptFromString:@"return document.getElementById('txtOgR_no');"] != nil)
    {...}

how can i check is there a element in page named "txtOgr_No" ?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about iphone