summaryrefslogtreecommitdiff
path: root/examples/qmlapp/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qmlapp/index.html')
-rw-r--r--examples/qmlapp/index.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/qmlapp/index.html b/examples/qmlapp/index.html
new file mode 100644
index 0000000..981b208
--- /dev/null
+++ b/examples/qmlapp/index.html
@@ -0,0 +1,16 @@
+<html>
+ <head>
+ <script src="../src/qwebchannel.js"></script>
+ <script>
+ function load() {
+ navigator.webChannel.init();
+ navigator.webChannel.exec({a:1}, function(response) {
+ document.body.innerHTML = response.b;
+ });
+ }
+ </script>
+ </head>
+ <body onload="load()">
+ <div>444</div>
+ </body>
+</html>