Posted By

flamboyanz on 01/24/13


screen orientataion

Versions (?)

Screen Orientation detection - JS 1.2

 / Published in: JavaScript


While working on Mobile Web Application, We can identify orientation or apply device specific css by CSS media queries , but if you need to detect media queries from JavaScript for orientation change, you can observe and notify it with JavaScript to trigger any event or DOM manipulation: The Key is matchMedia method, it is a part of View Module of CSSOM (CSS Object Model) still in draft mode.


Report this snippet  

You need to login to post a comment.