JavaScript mengatur margin kiri

document.getElementById("myDiv").style.marginLeft = "50px";
Friendly Hawk