1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2024-11-24 08:02:15 +02:00
CEF4Delphi/bin/JSExtensionWithFunction.html

20 lines
593 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<body>
<h1>JS extension with a function demo.</h1>
<p>The CEF3 document describing JavaScript extensions 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>test.myfunc()</strong> which was registered in the GlobalCEFApp.OnWebKitInitialized event.</p>
<button onclick="myFunction()">Click me</button>
<script>
function myFunction() {
alert(test.myfunc());
}
</script>
</body>
</html>