Instance Method

stringByEvaluatingJavaScriptFromString:

Returns the result of running a script.

Declaration

- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script;

Parameters

script

The script to run.

Return Value

The result of running a JavaScript specified by script, or an empty string if the script failed.