Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. "Unobtrusive
JavaScript" is a general approach to the use of JavaScript in web pages.
Though the term is not formally defined, its basic principles are
generally understood to include: Separation of functionality (the
"behavior layer") from a Web page's structure/content and presentation.
Best practices to avoid the problems of traditional JavaScript
programming (such as browser inconsistencies and lack of
scalability).Progressive enhancement to support user agents that may not
support advanced JavaScript functionalityJavaScript historically has had
a reputation for being a clumsy, hackish language unsuitable for serious
application development. This has been largely due to inconsistent
implementations of the language itself and the Document Object Model in
various browsers, and the widespread use of buggy cut-and-paste code.
Runtime errors were so common (and so difficult to debug) that few
programmers even tried to fix them, as long as the script behaved more
or less the way it was supposed to; scripts often failed completely in
some browsers.