We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a34f60c commit 8d30578Copy full SHA for 8d30578
render/tests/manual/iframe.html
@@ -1,11 +1,24 @@
1
-<!doctype html>
+<!DOCTYPE html>
2
<html>
3
<head>
4
<meta charset="utf-8">
5
</head>
6
<body>
7
<div id="root"></div>
8
<script src="../../../mithril.js"></script>
9
- <script src="./iframe.js"></script>
+ <script>
10
+ var count = 0
11
+
12
+ var Button = {
13
+ view: function() {
14
+ return m(
15
+ "button",
16
+ {onclick: function() { count += 1 }},
17
+ "Inside the iframe: " + count)
18
+ }
19
20
21
+ m.mount(document.getElementById("root"), Button)
22
+ </script>
23
</body>
24
</html>
render/tests/manual/iframe.js
0 commit comments