button
.button {
position: absolute;
left: 100px;
top: 150px;
}
button
const button = document.querySelector('main button');
const output = document.querySelector('main pre');
button.addEventListener('click', function (e) {
console.log('button is clicked');
output.innerHTML += 'button is clicked<br>';
});
howto button
.button {
position: absolute;
left: 100px;
top: 150px;
}
OR
const button = document.querySelector('main button');
const output = document.querySelector('main pre');
button.addEventListener('click', function (e) {
console.log('button is clicked');
output.innerHTML += 'button is clicked<br>';
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us