Most of the new smartphones have a feature wherein the layout of the screen changes depending on the horizontal/vertical orientation of the phone. Is it possible to have two entirely distinct HTML layouts depending on the phone orientation. E.g., background is white for portrait orientation and black for landscape orientation?
Are there Javascript events that tell us when the orientation changes?