public interface ScriptContextListener extends BrowserListener
Modifier and Type | Method and Description |
---|---|
void |
onScriptContextCreated(ScriptContextEvent event)
Invoked when JavaScript context has been created.
创建JavaScript上下文时调用。 |
void |
onScriptContextDestroyed(ScriptContextEvent event)
Invoked when JavaScript context has been destroyed.
销毁JavaScript上下文时调用。 |
void onScriptContextCreated(ScriptContextEvent event)
This callback is intened to allow you to inject JavaScript code into the page. You should not modify the DOM tree in this callback either via JavaScript or using JxBrowser DOM API. An attempt to remove the frame for which this callback is invoked from the DOM tree might lead to a crash of the Chromium process.
void onScriptContextDestroyed(ScriptContextEvent event)