Lecture 2 Reviewer Flashcards
Javascript is a ___ computer programming language.
dynamic
It is lightweight and most commonly used as a part of web pages, whose implementations allow…
client-side script to interact with the user and make dynamic pages; Javascript
It is an interpreted programming language with object-oriented capabilities.
Javascript
JS was first known as ___, but Netscape changes its name to JavaScript, possibly because of the excitement being generated by Java.
LiveScript
JS made its first appearance in ___ with the name LiveScript.
Netscape 2.0 in 1995
The ___ of the language has been embedded in Netscape, Internet Explorer, and other web browsers.
general-purpose core
The ___ defined a standard version of the core JavaScript language.
ECMA-262 Specification
JS is a ___, ___ programming language.
lightweight; interpreted
Designed for creating ___ applications.
network-centric; JavaScript
Complementary to and integrated with ___.
Java; JS
Complementary to and integrated with ___(2).
HTML
Open and cross-platform
JS
___ is the most common form of the language
Client-side JS
The script should be … for the code to be interpreted by the browser.
included in or references by an HTML document
It means that a web page need not be a static HTML, but can include programs that ___ (1), ___ (2), and ___ (3).
interact with the user; control the browser; dynamically create HTML content
The JS client-side mechanism provides many advantages over ___.
traditional CGI server-side scripts
you might use ___ to check if the user has entered a valid e-mail address in a form field
JS
The JS code is executed when the user submits the form, and only if ___, they would be submitted to the web server.
all the entries are valid
JavaScript can be used to trap ___ events such as button clicks, link navigation, and other actions that the ___.
user-initiated; user initiates explicitly or implicitly
Advantages of JavaScript
1 Less server interaction
2 Immediate feedback to the visitor
3 Increased interactivity
4 Richer interfaces
Advantage of JS: You can validate user input before sending the page off to the server. This saves server traffic, which means less load on your server.
Less server interaction
Advantage of JS: They don’t have to wait for a page reload to see if they have forgotten to enter something.
Immediate feedback to the visitors
Advantage of JS: You can create interfaces that react when the user hovers over them with a mouse or activates them via the keyboard.
Increased interactivity
Advantage of JS: You can use JavaScript to include such items as drag and-drop components and sliders to give a Rich Interface to your site visitors.
Richer interfaces
Limitations of JavaScript
1 Client-side JavaScript does not allow the reading or writing of files; This has been kept for security reason.
2 JavaScript cannot be used for networking applications because there is no such support available.
3 JavaScript doesn’t have any multithreading or multiprocessor capabilities.
JavaScript is a ___ that allows you to build interactivity into otherwise static HTML pages.
lightweight, interpreted programming language
JavaScript Development Tools
1 Microsoft FrontPage
2 Macromedia Dreamweaver MX
3 Macromedia HomeSite 5
One of major strengths of JavaScript is that it…
does not require expensive development tools
You can start with a simple text editor such as ___.
Notepad
Since it is an interpreted language inside the context of a web browser, you don’t even need to buy a ___.
compiler
To make our life simpler, various vendors have come up with very nice ___.
JavaScript editing tools
Some of the JS editing tools:
1 Microsoft FrontPage
2 Macromedia Dreamweaver MX
3 Macromedia HomeSite 5
JS Dev Tool: Microsoft has developed a popular HTML editor called ___. * also provides web developers with a number of JavaScript tools to assist in the creation of interactive websites.
Microsoft FrontPage
JS Dev Tool: ___ is a very popular HTML and JavaScript editor in the professional web development crowd. It provides several handy prebuilt JavaScript components, integrates well with databases, and conforms to new standards such as XHTML and XML.
Macromedia Dreamweaver MX
JS Dev Tool: ___ is a well-liked HTML and JavaScript editor from Macromedia that can be used to manage personal websites effectively.
Macromedia HomeSite 5
Where is JavaScript Today? The ___ standard will be the first update to be released in over four years.
ECMAScript Edition 5
___ conforms to Edition 5 of the ECMAScript standard, and the difference between the two is extremely minor.
JavaScript 2.0
Today, Netscape’s JavaScript and Microsoft’s JScript conform to the ___, although both the languages still support the features that are not a part of the standard.
ECMAScript standard
JavaScript can be implemented using JavaScript statements that are placed within the ___ HTML tags in a web page.
<script> ... </script>
You can place the script tags, containing your JavaScript, anywhere within you web page, but it is normally recommended that you should keep it within the ___ tags.
<head>
</head>
The script tag alerts the browser program to…
start interpreting all the text between these tags as a script
The script tag takes two important attributes:
Language, Type
This attribute specifies what scripting language you are using. Typically, its value will be javascript. Although recent versions of HTML (and XHTML, its successor) have phased out the use of this attribute.
Language
This attribute is what is now recommended to indicate the scripting language in use and its value should be set to “text/javascript”.
Type