Instance Method

stringByEvaluatingJavaScript(from:)

Returns the result of running a script.

Declaration

func stringByEvaluatingJavaScript(from script: String!) -> String!

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.