mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-15 15:55:56 +01:00
20 lines
580 B
HTML
20 lines
580 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<body>
|
||
|
|
||
|
<h1>JS Simple extension 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 contents of <strong>test.myval</strong> which was registered in the GlobalCEFApp.OnWebKitInitialized event.</p>
|
||
|
<button onclick="myFunction()">Click me</button>
|
||
|
|
||
|
<script>
|
||
|
function myFunction() {
|
||
|
alert(test.myval);
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|