Tuesday 11 August 2015

jQuery Mobile: Events


Orientation events:

  • At times a user will change the orientation of device when using an application, which could happen as a result of general movement of the device.
  • Orientation events are triggered when you rotate the mobile device vertically or horizontally i.e. change your mobile device orientation.

Example:

$(window).on("orientationchange", function(event){
      alert("Orientation Change");
});



No comments:

Post a Comment