Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to execute javascript cde on window rotate

window.addEventListener("orientationchange", function(event) {
  console.log("the orientation of the device is now " + event.target.screen.orientation.angle);
});
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #execute #javascript #cde #window #rotate
ADD COMMENT
Topic
Name
9+8 =