Tambahkan objek gaya js

document.getElementById("myElement").style.cssText = "display: block; position: absolute";
Tired Teira