* fix: Access document.activeElement through a function that eats errors for IE (#2075) * test: inline iframe.js so ospec doesn't try to run it
24 lines
589 B
HTML
24 lines
589 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script src="../../../mithril.js"></script>
|
|
<script>
|
|
var count = 0
|
|
|
|
var Button = {
|
|
view: function() {
|
|
return m(
|
|
"button",
|
|
{onclick: function() { count += 1 }},
|
|
"Inside the iframe: " + count)
|
|
}
|
|
}
|
|
|
|
m.mount(document.getElementById("root"), Button)
|
|
</script>
|
|
</body>
|
|
</html>
|