You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Bug fix #68
RenderProcessHandler and ResourceBundleHandler are now created automatically in TCEFApplication. All their events are now TCEFApplication events.
This commit is contained in:
20
bin/JSWindowBindingWithFunction.html
Normal file
20
bin/JSWindowBindingWithFunction.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<h1>JS Window Binding with a function demo.</h1>
|
||||
|
||||
<p>The CEF3 document describing JavaScript Window Bindings is here :<br>
|
||||
<a href="https://bitbucket.org/chromiumembedded/cef/wiki/JavaScriptIntegration.md">https://bitbucket.org/chromiumembedded/cef/wiki/JavaScriptIntegration.md</a></p>
|
||||
|
||||
<p>The following button shows the result of <strong>window.myfunc()</strong> which was set in the GlobalCEFApp.OnContextCreated event.</p>
|
||||
<button onclick="myFunction()">Click me</button>
|
||||
|
||||
<script>
|
||||
function myFunction() {
|
||||
alert(window.myfunc());
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user