August 2006
Beginner to intermediate
272 pages
3h 28m
English
There are some recurring JavaScript tasks you need to perform almost daily. They build the foundation of many JavaScript applications and do not fit into any specific category. Therefore, this chapter starts with a collection of common problems—and solutions.
Example .
window.alert(navigator.appName);
Although browsers’ implementations of JavaScript are quite compatible with each other nowadays (especially when compared with the situation during the browser war at the end of the 1990s), detecting the browser type is a vital part of the JavaScript developer’s toolbox.
The navigator JavaScript object provides browser information. Most useful, but also sometimes challenging to parse, is its userAgent ...
Read now
Unlock full access