Chapter 2. Context


JavaScript is used in the context of a Web page. This is obvious, but it has a few consequences that haven't always been properly appreciated. JavaScript is embedded in an environment that also uses HTML and CSS, and in which usability and accessibility are essential elements. After all, a script must add something useful to a site, and the site must continue to work when JavaScript is disabled or entirely absent.

This chapterin fact, my entire approach to JavaScript programmingis heavily influenced by the standards-compliance CSS revolution that has changed Web development. Therefore it's fitting to start this chapter with a quick summary of the CSS revolution and its impact on JavaScript.



ppk on JavaScript. Modern, Accessible, Unobtrusive JavaScript Explained by Means of Eight Real-World Example Scripts2006
ppk on JavaScript. Modern, Accessible, Unobtrusive JavaScript Explained by Means of Eight Real-World Example Scripts2006
ISBN: N/A
EAN: N/A
Year: 2005
Pages: 116

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net