Thank you very much for clarifying this simple fact that some lines of the code are not js, I made an assumption that whatever is not apparent html, it must be js
I have tried the following css
Code:
<style> html, body {overflow: hidden;}
</style>
and it does remove the vertical scrolling bar from the browser.
I have done the adjustments to the code and run an android simulator, and there seems to be no change. Here's what I typed in:
Code:
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<?php
document.ontouchstart=document.onmousedown=preventer;
function preventer(e){
if(!e){e=window.event;}
e.preventDefault();
}
window.scrollTo(0,0,0);
?>