ultimatepp/bazaar/ChromiumBrowserExample/html/test_page.html
zbych 5351e71359 ChromiumBrowser: console log, browser status, docs updated
git-svn-id: svn://ultimatepp.org/upp/trunk@9068 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-10-22 20:30:22 +00:00

31 lines
946 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
body {background-color: #EFEFEF}
canvas, label, button {
padding-left: 0;
padding-right: 0;
margin-left: auto;
margin-right: auto;
display: block;
}
</style>
</head>
<body>
<p><label style="font-size:30px" id="some_label">Waiting for some action...</label></p>
<p><button style="font-size:30px" onclick="JSExample1('some string', true, 777);">Press me to execute native function from JS!</button></p>
<p><button style="font-size:30px" onclick="JSExample2('second function', 123);">Press me to execute another native function from JS!</button></p>
<p><button style="font-size:30px" onclick="console.log('debug message!');">Press me to add console message</button></p>
<script>
function CallbackExample(r)
{
document.getElementById('some_label').innerHTML = 'Javascript function executed by native code: ' + r;
}
</script>
</body>
</html>