View Single Post
Old 11-14-2012, 04:02 AM   PM User | #4
eydg
New Coder

 
Join Date: Sep 2012
Posts: 72
Thanks: 2
Thanked 1 Time in 1 Post
eydg is an unknown quantity at this point
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);  
?>
eydg is offline   Reply With Quote