View Single Post
Old 11-14-2012, 06:25 PM   PM User | #8
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
Quote:
Originally Posted by Philip M View Post
This is not php - it is Javascript. Labrar used the wrong tags.

Code:
<script type = "text/javascript">
document.ontouchstart=document.onmousedown=preventer;
function preventer(e){    
if(!e){e=window.event;}
e.preventDefault();
}  
</script>

This piece of code does the trick in chrome, but in android simulator stops the app buttons and links from responding.

I wonder if it could be a matter of placement of the piece, but as I changed its location no chance resulted in either of the two environments.
eydg is offline   Reply With Quote