This worked fine in version 2883.
I get this error:
Unable to execute javascript at this time, scripts can only be executed within a V8Context.
Use the IWebBrowser.CanExecuteJavascriptInMainFrame property to guard against this exception.
I use this code to add the page, so i can later load the page by URL:
- Code: Select all
Dim factory As IResourceHandlerFactory = m_innerBrowser.ResourceHandlerFactory
If TypeOf factory Is DefaultResourceHandlerFactory Then
Dim xfactory As DefaultResourceHandlerFactory = DirectCast(factory, DefaultResourceHandlerFactory)
Dim blnOK As Boolean = xfactory.RegisterHandler("http://localhost/selectsite.htm", ResourceHandler.FromString(strHmtl))
End If
I use CefSharp, and sorry for VB.NET sample code.