Answers for "howto button"

1

button

.button {
  position: absolute;
  left: 100px;
  top: 150px;
}
Posted by: Guest on May-03-2021
0

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>';
});
Posted by: Guest on June-14-2021
0

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>';
});
Posted by: Taylor Swift on April-19-2022

Browse Popular Code Answers by Language