iPadでJavaScriptのscreen.widthで取得できるのは横向きでも縦向きの幅

document.write("幅: " + screen.width + " 高さ: " + screen.height);