forked from dansion/chinamaps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
roll.html
29 lines (27 loc) · 853 Bytes
/
roll.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Roll!!</title>
<meta name="generator" content="editplus">
<meta name="author" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<script type="text/javascript">
function createInput()
{
var inputdiv = document.getElementById("inputDiv");
var br = document.createElement("br");
inputdiv.appendChild(br);
var input1 = document.createElement("input");
input1.setAttribute("type", "text");
input1.setAttribute("disabled", "true");
input1.setAttribute("value", Math.floor(Math.random()*101));
inputdiv.appendChild(input1);
}
</script>
</head>
<body>
<div id="inputDiv"></div>
<input type="button" value="Roll!!!" onClick="createInput();" />
</body>
</html>