I have a mobile web page of the following format:
header - logo etc - absolute positioned
content - scrollable, absolute positioned
footer, 40px abs
I'm not smart like you guys,
So I took a ruler and measured the size of my cell phone screen. 2nd Then measured the size of the keyboard
I noticed that the keyboard occupied 38% of the screen.
So I put a div in the footer and called it affectionately frog.
and I used this code:
$('body').on('focus', 'input, textarea', function(event) {
var altura = $(window).height();
var scrollp = parseInt(parseInt(altura)/100*38);
$("#divSapo").css("height",scrollp + "px");
window.scrollTo(0,document.body.scrollHeight);
});