BCGControlBar Pro for MFC
void CBCGPWebView2Ctrl::ExecuteScript ( const CString &  strJavaScript,
BOOL  bCompletedHandler = FALSE 
)

Executes the script on the currently loaded page.

Parameters
strJavaScriptThe script content.
bCompletedHandlerIf this parameter is TRUE, a virtual method OnExecuteScriptCompleted will be called.