Jul 30, 2010

Brouser window size of iPhone and iPad

iPad 1024 x 768 px

iPad portlait
window.innerHeight: 1208
window.innerWidth: 980
document.body.clientHeight: 1138
document.body.clientWidth: 964

iPad landscape
window.innerHeight: 661
window.innerWidth: 981
document.body.clientHeight: 1109
document.body.clientWidth: 964

iPhone (3GS) 320 x 480 px

(iPhone is used )

iPhone portlait
window.innerHeight: 416
window.innerWidth: 320
document.body.clientHeight: 1253
document.body.clientWidth: 304

iPhone landscape
window.innerHeight: 268
window.innerWidth: 480
document.body.clientHeight: 1285
document.body.clientWidth: 464