Scott:
You can use the innerWidth and innerHeight properties:
var myWidth = window.innerWidth;
var myHeight = window.innerHeight;
They work in all browsers and all devices... also a great way to
determine when the device changes orientation:
if (myWidth > myHeight) then you're in landscape mode
if (myWidth < myHeight) then you're in portrait mode
Bill
--
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en.