As the height and width of the browser is affected on changing the orientation of the iPhone, Safari provides a Javascript event called
onorientationchange on the tag which notifies whenever you tilt the orientation. Safari also provides a property called
window.orientation which provides the angle of tilt with 0° being the bottom of the iPhone.
So the code would like something like this in HTML
No comments:
Post a Comment