cara menambahkan beberapa gaya css dalam javascript
document.getElementById("myElement").style.cssText = "display: block; position: absolute";
//use template literals
document.getElementById("myElement").style.cssText = `
display: block;
position: absolute;
`;
BlueMoon