9 lines
151 B
JavaScript
9 lines
151 B
JavaScript
'use strict'
|
|
|
|
window.onload = function () {
|
|
const b = document.getElementById('my-button')
|
|
b.onclick = function () {
|
|
window.alert('foo')
|
|
}
|
|
}
|