Answers for "HTML <button"

4

html button size

transform: scale(4); /* This will make the component 4 times bigger  */
Posted by: Guest on July-28-2020
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

Browse Popular Code Answers by Language