Published
- 1 min read
how to execute javascript cde on window rotate
The solution for this is noted below
how to execute javascript cde on window rotate
Solution
window.addEventListener('orientationchange', function (event) {
console.log('the orientation of the device is now ' + event.target.screen.orientation.angle)
})
Try other methods by searching on the site. That is if this doesn’t work