11 lines
220 B
TypeScript
11 lines
220 B
TypeScript
console.log('Another view')
|
|
|
|
const button = document.getElementById('show-alert-button');
|
|
if (button) {
|
|
button.addEventListener('click', function (e) {
|
|
e.preventDefault();
|
|
|
|
alert('Danger!');
|
|
})
|
|
}
|