mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 08:03:22 +00:00
335c884b08
Add Basic tests, still need some more work. Test changes added in #2748
29 lines
653 B
HTML
29 lines
653 B
HTML
<!DOCTYPE html>
|
|
|
|
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Javascript Callback Test</title>
|
|
|
|
<script type="text/javascript">
|
|
(async function ()
|
|
{
|
|
await CefSharp.BindObjectAsync('boundObject');
|
|
boundObject.setCallBack(myFunction);
|
|
|
|
function myFunction(param)
|
|
{
|
|
return "Test " + param;
|
|
}
|
|
})();
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>Javascript Callback Test</h1>
|
|
<script type="text/javascript">
|
|
document.write("Current Url: " + window.location.href);
|
|
</script>
|
|
</body>
|
|
</html>
|