I have the following code that opens a new popup window while disabling the background, the problem is that I have to position this so that it\'s 100px from the top (already got
Simple, margin: 100px auto;. There's no need to do calculations in JavaScript.
margin: 100px auto;
Live Example