While working on mobile web, first is think about how to detect the user's device. If the user is using a mobile device, then you have to redirect to a mobile web, not a general long and 3 or 4 columns website.
In Apache web server, Browser ID, more correctly called User Agent IDs, is the environmental variable HTTP_USER_AGENT. In dot net server (ASPX), you can use a string variable Request.UserAgent.
Learning the Basics - from: http://developer.yahoo.com/yui/theater/
The awesome people at Yahoo uploaded their training session videos to the world in general. Great deal for us, since learning JavaScript is as easy as spending four hours watching these smart guys talk.
Douglas Crockford: "The JavaScript Programming Language" 1 of 4