CEF4Delphi/bin/JSSimpleWindowBinding.html

20 lines
584 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<body>
<h1>JS Simple Window Binding 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 contents of <strong>window.myval</strong> which was set in the GlobalCEFApp.OnContextCreated event.</p>
<button onclick="myFunction()">Click me</button>
<script>
function myFunction() {
alert(window.myval);
}
</script>
</body>
</html>