In theory this should be simple?

Hey so I am struggling with this little bit of code and I am hoping that someone out there could tell me if I am wrong or why it wouldn’t work


function next_image(){
	var pos = document.getElementById('image_control').scrollLeft+=900;
	
	if(pos==900){document.getElementsByTagName('td').item(1).style.display='block';}

	return pos;
	}


Here’s the structure of that assignment.

var foo = bar += 900;

Both foo and bar will be updated to the increased value.
Do you really want to make a change to the scrollLeft property of that element?
Should the += be just a + instead?