Wiley Professional JavaScript for Web Developers, 2nd Edition 978-0-470-22780-0 ユーザーズマニュアル
製品コード
978-0-470-22780-0
What Is JavaScript?
When JavaScript first appeared in 1995, its main purpose was to handle some of the input
validation that had previously been left to server - side languages such as Perl. Prior to that time, a
round - trip to the server was needed to determine if a required field had been left blank or an
entered value was invalid. Netscape Navigator sought to change that with the introduction of
JavaScript. The capability to handle some basic validation on the client was an exciting new feature
at a time when use of telephone modems was widespread. The associated slow speeds turned
every trip to the server into an exercise in patience.
validation that had previously been left to server - side languages such as Perl. Prior to that time, a
round - trip to the server was needed to determine if a required field had been left blank or an
entered value was invalid. Netscape Navigator sought to change that with the introduction of
JavaScript. The capability to handle some basic validation on the client was an exciting new feature
at a time when use of telephone modems was widespread. The associated slow speeds turned
every trip to the server into an exercise in patience.
Since that time, JavaScript has grown into an important feature of every major web browser on the
market. No longer bound to simple data validation, JavaScript now interacts with nearly all
aspects of the browser window and its contents. JavaScript is recognized as a full programming
language, capable of complex calculations and interactions, including closures, anonymous
(lambda) functions, and even metaprogramming. JavaScript has become such an important part of
the Web that even alternative browsers, including those on mobile phones and those designed for
users with disabilities, support it. Even Microsoft, with its own client - side scripting language
called VBScript, ended up including its own JavaScript implementation in Internet Explorer from
its earliest version.
market. No longer bound to simple data validation, JavaScript now interacts with nearly all
aspects of the browser window and its contents. JavaScript is recognized as a full programming
language, capable of complex calculations and interactions, including closures, anonymous
(lambda) functions, and even metaprogramming. JavaScript has become such an important part of
the Web that even alternative browsers, including those on mobile phones and those designed for
users with disabilities, support it. Even Microsoft, with its own client - side scripting language
called VBScript, ended up including its own JavaScript implementation in Internet Explorer from
its earliest version.
The rise of JavaScript from a simple input validator to a powerful programming language could
not have been predicted. JavaScript is at once a very simple and very complicated language that
takes minutes to learn but years to master. To begin down the path to using JavaScript ’ s full
potential, it is important to understand its nature, history, and limitations.
not have been predicted. JavaScript is at once a very simple and very complicated language that
takes minutes to learn but years to master. To begin down the path to using JavaScript ’ s full
potential, it is important to understand its nature, history, and limitations.
A Shor t Histor y
Around 1992, a company called Nombas (later bought by Openwave) began developing an
embedded scripting language called C - minus - minus (Cmm for short). The idea behind Cmm was
simple: a scripting language powerful enough to replace macros, but still similar enough to C (and
C++) that developers could learn it quickly. This scripting language was packaged in a shareware
product called CEnvi, which first exposed the power of such languages to developers. Nombas
embedded scripting language called C - minus - minus (Cmm for short). The idea behind Cmm was
simple: a scripting language powerful enough to replace macros, but still similar enough to C (and
C++) that developers could learn it quickly. This scripting language was packaged in a shareware
product called CEnvi, which first exposed the power of such languages to developers. Nombas
c01.indd 1
c01.indd 1
12/8/08 11:21:48 AM
12/8/08 11:21:48 AM
COPYRIGHTED MATERIAL