The OpenD Programming Language

ICoreWebView2.RemoveScriptToExecuteOnDocumentCreated

Remove the corresponding JavaScript added using AddScriptToExecuteOnDocumentCreated with the specified script ID. The script ID should be the one returned by the AddScriptToExecuteOnDocumentCreated. Both use AddScriptToExecuteOnDocumentCreated and this method in NewWindowRequested event handler at the same time sometimes causes trouble. Since invalid scripts will be ignored, the script IDs you got may not be valid anymore.

interface ICoreWebView2
HRESULT
RemoveScriptToExecuteOnDocumentCreated
(
in LPCWSTR id
)

Meta