1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <script type=
"text/javascript">
10 var box
= document
.createElement('DIV');
11 box
.id
= 'box' + next
++;
12 box
.className
= 'redbox';
13 box
.style
.width
= '150px';
14 box
.style
.height
= '150px';
15 box
.style
.backgroundColor
= 'red';
16 box
.style
.border
= '1px solid black';
17 box
.style
.margin
= '5px';
19 window
.setTimeout(function() {
20 document
.body
.appendChild(box
);
25 var elem
= document
.getElementById('revealed');
26 window
.setTimeout(function() {
27 elem
.style
.display
= '';
33 <input id=
"adder" type=
"button" value=
"Add a box!" onclick=
"addMore()"/>
35 <input id=
"reveal" type=
"button" value=
"Reveal a new input" onclick=
"reveal();" />
37 <input id=
"revealed" style=
"display:none;" />