I\'m starting to try and do some web based game programming for my iPhone, and other web enabled phones that my friends have, and was having a hard time finding information
In the latest iOS update (4.2) the accelorometer is now accessible from Javascript.
See: http://www.mobilexweb.com/blog/safari-ios-accelerometer-websockets-html5