move item to right of div code example
Example: how to move a div to the right using a funvtion
window.addEventListener('click', function(e){
if (document.getElementById("ClickBox").contains(e.target)) {
var boxxy = document.getElementById("ClickBox");
boxxy.style.left = (boxxy.offsetLeft + 50) + 'px';
}
});