html
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
<!DOCTYPE html>
<html>
<head>
<title>button submit</title>
</head>
<body>
<script>
window.onload = () => {
//begin
//create input
var inputbutton1 = document.createElement ("input");
//type
inputbutton1.type = "button";
//set value
inputbutton1.value = 5;
//onclick
inputbutton1.onclick = "testNumber ()";
//browser
document.body.appendChild (inputbutton1);
//next input buttonn
var inputbutton = document.createElement ("input");
//set type
inputbutton.type = "submit";
//onclick
inputbutton.onclick = "testNumber ()";
//style
inputbutton.style.marginBottom = "5px";
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
body {
}
button {
text-align:center ;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run