ios - How to access javascript function variable in UIWebview -
i want print variable value of javascript function in xcode console. script
<script language="javascript" type="text/javascript"> function myfunction() { var abc =@"my value"; alert('hello world'); } </script>
with of
[webview stringbyevaluatingjavascriptfromstring:@"myfunction()"]];
i able run function , alert of @"hello world" display.
my main concern nslog(@"abc value %@",?); how access abc value ="my value";
i new in javascript , don't have knowledge of basic of javascript.
waiting replay'
thanks
Comments
Post a Comment