dovrebbe bastare aggiungere 'px'

document.getElementById("Oggetto").style.top=300+' px';