blob: e1a4bf6044e08874147e6f3d85f859e69cb500ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<html>
<head>
<script src="../../src/qwebchannel.js"></script>
<script>
function load() {
navigator.webChannel.subscribe("incoming-call",
function(message) { debug(message); }
);
navigator.webChannel.exec({a:"This is a request from HTML"}, function(response) {
debug(response.b);
});
}
</script>
</head>
<body onload="load()">
<div>444</div>
</body>
</html>
|