How to make document.getelementbyid.style.top a number? I'm trying to make document.getElementById.style.top to be a number without px. For example if document.getElementById.style.top is 100px, I want to make a variable that is 100 without px.
I tried to do this, but it wasn't working.