• Aucun résultat trouvé

Chapter 4

N/A
N/A
Protected

Academic year: 2022

Partager "Chapter 4"

Copied!
24
0
0

Texte intégral

(1)

Chapter 4

The Basics

of JavaScript

(2)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-2

TABLE 4.1

The Reserved Words of JavaScript

(3)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-3

FIGURE 4.1 Primitives and objects

(4)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-4

TABLE 4.2 Precedence and Associativity

of the Numeric Operators

(5)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-5

TABLE 4.3 Properties of Number

(6)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-6

TABLE 4.4 String Methods

(7)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-7

TABLE 4.5 Methods for the Date Object

(8)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-8

TABLE 4.5

Methods for the Date Object (Continued)

(9)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-9

FIGURE 4.2 An example of the output of

document.write

(10)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-10

FIGURE 4.3

An example of the output of alert

(11)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-11

FIGURE 4.4

An example of the output of confirm

(12)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-12

FIGURE 4.5

An example of the output of prompt

(13)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-13

TABLE 4.6 Relational Operators

(14)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-14

TABLE 4.7

Operator Precedence and Associativity

(15)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-15

FIGURE 4.6

Dialog box from borders2.html

(16)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-16

FIGURE 4.7 Display of borders2.html

(17)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-17

FIGURE 4.8 Display of date.html

(18)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-18

FIGURE 4.9

Display of nested_arrays.html

(19)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-19

FIGURE 4.10 Display of parameters.html

(20)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-20

FIGURE 4.11 Display of medians.html

(21)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-21

TABLE 4.8 Predefined Character Classes

(22)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-22

FIGURE 4.12

Display of forms_check.html

(23)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-23

FIGURE 4.13 Display of debugdemo.html

with Internet Explorer 6

(24)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

4-24

FIGURE 4.14 Display of the Netscape 7

JavaScript Console

Références

Documents relatifs

Furthermore, relatively high prevalences of any RMP resistance, the most powerful anti-tu- berculosis drug and a key determinant of MDR-TB, were reported among new cases in Henan

percent of them prefer children’s dramas; two percent of children prefer children’s entertainment programs; sixty percent of children’s favorite programs are TV dramas;

1) Go to Tools > Gallery on the main menu bar or click the Gallery icon on the Drawing toolbar to open the Gallery dialog (Figure 4). The Gallery displays the available

An Education Amendment Does Not Narrow Fair Dealing Education organizations are asking the federal government to change the existing copyright law by introducing a new

Rather than giving the position of each of the N ' 10 23 atoms, we give the position of the atoms in the unit cell together with the primitive lattice vectors allowing to

4- Aide-toi des dessins des sacs pour écrire

Cet article des Editions Lavoisier est disponible en acces libre et gratuit sur ds.revuesonline.com..

Patrick Guillemet – Télé-université du Québec, Montréal, Québec Geneviève Jacquinot – GRAME, Université Paris 8, France Marie-Noëlle Lamy – FELS, Open University,