Skip to content

Instantly share code, notes, and snippets.

@penk
Created October 28, 2010 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penk/650743 to your computer and use it in GitHub Desktop.
Save penk/650743 to your computer and use it in GitHub Desktop.
JSEvaluateScript
WebKitWebFrame *frame;
frame = webkit_web_view_get_main_frame(WEBKIT_WEB_VIEW (web_view));
JSGlobalContextRef context = webkit_web_frame_get_global_context(frame);
JSStringRef script = JSStringCreateWithUTF8CString("console.log('test');");
JSEvaluateScript(context, script, 0, 0, 0, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment