I want to print variable value of javascript function in xcode console. This is the script
<script language="javascript" type="text/javascript">
function myFunction() {
var abc =@"My Value";
alert('Hello world');
}
</script>
With help of
[webView stringByEvaluatingJavaScriptFromString:@"myFunction()"]];
I able to run function and alert of @"Hello world" is display.
My main concern is NSLog(@"abc Value %@",?); How to access abc value ="My Value";
I am new in javascript and don't have much knowledge of basic of javascript.
waiting for replay'
Thanks