how to write position of a class in javascript code example Example: change the position of div using javascript document.getElementById('carRight').style.left="600px";