var elem = document.getElemenById('butt')
<input id="butt" type="button" onclick="elem.style.position='absolute';elem.style.top='50%';elem.style.left='50%'">