The only acceptable way to prevent scrolling is to put the content inside the window. Anything else and you are pissing users.
You can also use position: fixed CSS - but still, if it is larger than the window, the rest is unsuitable, so you can also follow suggestion number 1.
source share