Ustaw pozycję elementu JS

<button id="btn" onclick="move()">
    I move!
</button>

<script>
    function move(){
        document.getElementById("btn").style.position="relative";
        document.getElementById("btn").style.top="500px";
        document.getElementById("btn").style.left="500px";
    }
</script>
Amateur developer