I have website; a background image with an input. When I press on the input on my phone, the keyboard opens an everything gets pushed up. I would like instead the content to stay in place and keyboard just to go over the content without affecting(moving) it. I saw this solution:
input.onfocus = function () {
window.scrollTo(0, 0);
document.body.scrollTop = 0;
}
But it doesn't seem to work. I'm looking forward to your answers!