how to change the width and height of a button in html code example
Example: how to set button width in javascript
var buttonShort = document.createElement("button");
buttonShort.innerHTML = "Generate Short Password";
var body = document.getElementsByTagName("body")[0];
buttonShort.style.width = '200px';
buttonShort.style.height = '200px';
buttonShort.style.background = 'teal';
buttonShort.style.color = 'white';
buttonShort.style.fontSize = '20px';
body.appendChild(buttonShort);
buttonShort.addEventListener("click", function() {
var newWindow = window.open();
newWindow.document.write("The generated Password is: '" + short() + "'");
newWindow.focus();
});