0% found this document useful (0 votes)
36 views

Javascript Green Apple Computer Learning

JavaScript is a dynamic computer programming language that is lightweight and commonly used in web pages to provide interactive effects. It allows for client-side scripting to interact with users and dynamically update HTML content without reloading pages. JavaScript code is executed when events occur, like form submissions or button clicks, and can validate user input before sending it to servers. This improves performance by reducing server requests.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Javascript Green Apple Computer Learning

JavaScript is a dynamic computer programming language that is lightweight and commonly used in web pages to provide interactive effects. It allows for client-side scripting to interact with users and dynamically update HTML content without reloading pages. JavaScript code is executed when events occur, like form submissions or button clicks, and can validate user input before sending it to servers. This improves performance by reducing server requests.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 96

*

JavaScript
Green Apple
Computer Learning
* Javascript is a dynamic computer programming
language.
* 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.

*
2 11/20/2016
* It is an interpreted programming language
* It object-based language

*
3 11/20/2016
* JavaScript was first known as LiveScript, but
Netscape changed its name to JavaScript,
possibly because of the excitement being
generated by Java.
* JavaScript made its first appearance in
Netscape 2.0 in 1995 with the name
LiveScript.

4 11/20/2016
* JavaScript is a lightweight, interpreted
programming language.
* Designed for creating network-centric
applications.
* Complementary to and integrated with Java.
* Complementary to and integrated with HTML.
* Open and cross-platform

*
5 11/20/2016
* Client-side JavaScript is the most common
form of the language.
* The script should be included in or referenced
by an HTML document for the code to be
interpreted by the browser.

*
6 11/20/2016
* It means that a web page need not be a static
HTML, but can include programs that interact with
the user, control the browser, and dynamically
create HTML content.
* The JavaScript client-side mechanism provides
many advantages over traditional CGI server-side
scripts. For example, you might use JavaScript to
check if the user has entered a valid e-mail address
in a form field.
* The JavaScript code is executed when the user
submits the form, and only if all the entries are
valid, they would be submitted to the Web Server.
* JavaScript can be used to trap user-initiated events
such as button clicks, link navigation, and other
actions that the user initiates explicitly or
implicitly.

*
7 11/20/2016
* Less server interaction
* Immediate feedback to the visitors
* Increased interactivity
* Richer interfaces

*
8 11/20/2016
* You can validate user input before sending the
page off to the server. This saves server traffic,
which means less load on your server.

*
9 11/20/2016
* They don't have to wait for a page reload to
see if they have forgotten to enter something.

*
10 11/20/2016
* You can create interfaces that react when the
user hovers over them with a mouse or
activates them via the keyboard.

*
11 11/20/2016
* You can use JavaScript to include such items as
drag-and-drop components and sliders to give a
Rich Interface to your site visitors.

*
12 11/20/2016
* Client-side JavaScript does not allow the
reading or writing of files. This has been kept
for security reason.
* JavaScript cannot be used for networking
applications because there is no such support
available.
* JavaScript doesn't have any multithreading or
multiprocessor capabilities.

*
13 11/20/2016
* Microsoft FrontPage
* Macromedia Dreamweaver MX
* Macromedia HomeSite 5

*
14 11/20/2016
* Microsoft has developed a popular HTML editor
called FrontPage.
* FrontPage also provides web developers with a
number of JavaScript tools to assist in the
creation of interactive websites.

*
15 11/20/2016
* Macromedia Dreamweaver MX 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.

*
16 11/20/2016
* HomeSite 5 is a well-liked HTML and JavaScript
editor from Macromedia that can be used to
manage personal websites effectively.

*
17 11/20/2016
* The <script> tag alerts the browser program to
start interpreting all the text between these
tags as a script.

*
18 11/20/2016
* Language
* Type

*
19 11/20/2016
* This attribute specifies what scripting language
you are using. Typically, its value will be
javascript. Although recent versions of HTML
andXHTML, itssuccessor have phased out the
use of this attribute.

*
20 11/20/2016
* This attribute is what is now recommended to
indicate the scripting language in use and its
value should be set to "text/javascript".

*
21 11/20/2016
22 11/20/2016
<script language="javascript" type="text/javascript">
<!--
// This is a comment. It is similar to comments in C++
/*
* This is a multiline comment in JavaScript
* It is very similar to comments in C Programming
*/
//-->
</script>

*
23 11/20/2016
24 11/20/2016
25 11/20/2016
26 11/20/2016
27 11/20/2016
* Numbers, eg. 123, 120.50 etc.
* Strings of text e.g. "This text string" etc.
* Boolean e.g. true or false
* null
* Undefined
* object

*
28 11/20/2016
* Variables are declared with the var keyword as
follows

<script type="text/javascript">
<!--
var money;
var name;
//-->
</script>

*
29 11/20/2016
<script type="text/javascript">
<!--
var name = "Ali";
var money;
money = 2000.50;
//-->
</script>

*
30 11/20/2016
* JavaScript is untyped language. This means
that a JavaScript variable can hold a value of
any data type.

*
31 11/20/2016
* Global Variables
* Local Variable

*
32 11/20/2016
* A global variable has global scope which means
it can be defined anywhere in your JavaScript
code.

*
33 11/20/2016
* A local variable will be visible only within a
function where it is defined. Function
parameters are always local to that function.

*
34 11/20/2016
<script type="text/javascript">
<!--
var myVar = "global"; // Declare a global variable
function checkscope( ) {
var myVar = "local"; // Declare a local variable
document.write(myVar);
}
//-->
</script>

*
35 11/20/2016
36 11/20/2016
37 11/20/2016
*
38 11/20/2016
* 39 11/20/2016
* Arithmetic Operators
* Comparision Operators
* Logical orRelational Operators
* Assignment Operators
* Conditional orternary Operators

*
40 11/20/2016
41 11/20/2016
42 11/20/2016
43 11/20/2016
44 11/20/2016
45 11/20/2016
46 11/20/2016
* The typeof operator is a unary operator that is
placed before its single operand, which can be
of any type. Its value is a string indicating the
data type of the operand.

*
47 11/20/2016
*
48 11/20/2016
49 11/20/2016
50 11/20/2016
51 11/20/2016
52 11/20/2016
53 11/20/2016
54 11/20/2016
55 11/20/2016
56 11/20/2016
57 11/20/2016
58 11/20/2016
59 11/20/2016
60 11/20/2016
61 11/20/2016
62 11/20/2016
63 11/20/2016
64 11/20/2016
65 11/20/2016
66 11/20/2016
67 11/20/2016
68 11/20/2016
69 11/20/2016
70 11/20/2016
71 11/20/2016
72 11/20/2016
73 11/20/2016
74 11/20/2016
* The JavaScript navigator object includes a
child object called plugins.
* This object is an array,with one entry for each
plug-in installed on the browser.
* The navigator.plugins object is supported only
by Netscape, Firefox, and Mozilla only.

*
75 11/20/2016
76 11/20/2016
77 11/20/2016
78 11/20/2016
79 11/20/2016
* To get information about the browser your
webpage is currently running in, use the built-
in navigator object

*
80 11/20/2016
* appCodeName
* appVersion
* Language
* mimTypes[]
* platform[]
* plugins[]
* userAgent[]

*
81 11/20/2016
* This property is a string that contains the code
name of the browser, Netscape for Netscape
and Microsoft Internet Explorer for Internet
Explorer.

*
82 11/20/2016
* This property is a string that contains the
version of the browser as well as other useful
information such as its language and
compatibility.

*
83 11/20/2016
* This property contains the two-letter
abbreviation for the language that is used by
the
* browser. Netscape only.

*
84 11/20/2016
* This property is an array that contains all MIME
types supported by the client. Netscape only.

*
85 11/20/2016
* This property is a string that contains the
platform for which the browser was
compiled."Win32" for 32-bit Windows operating
systems.

*
86 11/20/2016
* This property is an array containing all the
plug-ins that have been installed on the client.
Netscape only.

*
87 11/20/2016
* This property is a string that contains the code
name and version of the browser.
* This value is sent to the originating server to
identify the client.

*
88 11/20/2016
* javaEnabled()
* plugings.refresh
* preference(name,value)
* taintEnabled()

*
89 11/20/2016
* This method determines if JavaScript is
enabled in the client. If JavaScript is enabled,
this method returns true; otherwise, it returns
false.

*
90 11/20/2016
* This method makes newly installed plug-ins
available and populates the plugins array with
all new plug-in names. Netscape only.

*
91 11/20/2016
* This method allows a signed script to get and
set some Netscape preferences. If the second
parameter is omitted, this method will return
the value of the specified preference;
otherwise, it sets the value. Netscape only.

*
92 11/20/2016
* This method returns true if data tainting is
enabled; false otherwise.

*
93 11/20/2016
94 11/20/2016
95 11/20/2016
*THANK YOU
96 11/20/2016

You might also like