Ohee
0
Q:

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);
});
0

New to Communities?

Join the community