blob: b8b7d4305b72ab588dfca23a79aeca70dd45f9aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# HTML stuff
## DOM manipulation
// create new element
document.createElement('button')
// append child
element1.appendChild(element2)
## Elements
### Button
By default, a button has type `reset` or `submit`, both of which reload the
page. To avoid reloading:
<button type='button'></button>
### Checkbox
To check by default:
<input type='checkbox' checked>
|