/ Published in: JavaScript
understanding if the iphone is in landscape or portrait mode
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function check(e){ //alert(window.orientation); if(e==0 || e== 180){ alert('Gira il telefono!'); } }