I develop simple example to run some javascript code with CefFrame::ExecuteJavaScript but some of code work and some not work for example I can run
- Code: Select all
frame->ExecuteJavaScript("document.write('xxx');", frame->GetURL(), 0);
but I can't run
- Code: Select all
frame->ExecuteJavaScript("window.alert('Failed to get V8 enter!');", frame->GetURL(), 0);
what is problem ?
I test codes in OnLoadEnd event and OnContextCreated , result is same.
a sample attached to post.
my os is Ubuntu 14.04.
thank you