1
<!-- This Source Code Form is subject to the terms of the Mozilla Public
2
- License, v. 2.0. If a copy of the MPL was not distributed with this
3
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
8
<title>Marionette Test</title>
11
<h1 id="testh1">Test Page</h1>
12
<script type="text/javascript">
14
setTimeout(addDelayedElement, 1000);
15
function addDelayedElement() {
16
var newDiv = document.createElement("div");
18
var newContent = document.createTextNode("I am a newly created div!");
19
newDiv.appendChild(newContent);
20
document.body.appendChild(newDiv);
23
var link = document.getElementById("mozLink");
24
link.innerHTML = "Clicked";
27
<a href="#" id="mozLink" class="linkClass" onclick="clicked()">Click me!</a>
29
<a href="#" id="divLink" class="linkClass" onclick="clicked()">Div click me!</a>
30
<a href="#" id="divLink2" class="linkClass" onclick="clicked()">Div click me!</a>
32
<input name="myInput" type="text" value="asdf"/>
33
<input name="myCheckBox" type="checkbox" />