I About the Tutorial



Yüklə 0,99 Mb.
Pdf görüntüsü
səhifə2/8
tarix07.11.2018
ölçüsü0,99 Mb.
#78681
1   2   3   4   5   6   7   8

iii 

 

 

Bitwise Operators .......................................................................................................................................... 28



 

Assignment Operators ................................................................................................................................... 31

 

Miscellaneous Operators ............................................................................................................................... 34



 

7.

 

JAVASCRIPT – If-Else ............................................................................................................................... 38

 

Flow Chart of if-else ....................................................................................................................................... 38



 

if Statement ................................................................................................................................................... 39

 

if...else Statement ......................................................................................................................................... 40



 

if...else if... Statement ................................................................................................................................... 41

 

8.

 

JAVASCRIPT – Switch-Case ...................................................................................................................... 43

 

Flow Chart ..................................................................................................................................................... 43



 

9.

 

JAVASCRIPT – While Loop ....................................................................................................................... 47

 

The while Loop .............................................................................................................................................. 47



 

The do...while Loop ....................................................................................................................................... 49

 

10.

 

JAVASCRIPT – For Loop ........................................................................................................................... 52

 

The for Loop .................................................................................................................................................. 52



 

11.

 

JAVASCRIPT – For-in Loop ....................................................................................................................... 55

 

12.

 

JAVASCRIPT – Loop Control ..................................................................................................................... 57

 

The break Statement ..................................................................................................................................... 57



 

The continue Statement ................................................................................................................................ 59

 

Using Labels to Control the Flow ................................................................................................................... 60



 

13.

 

JAVASCRIPT – Functions .......................................................................................................................... 64

 

Function Definition ........................................................................................................................................ 64



 

Calling a Function .......................................................................................................................................... 65

 

Function Parameters ..................................................................................................................................... 66



 

The return Statement .................................................................................................................................... 67

 

Nested Functions ........................................................................................................................................... 68



 

Function () Constructor ................................................................................................................................. 70

 

Function Literals ............................................................................................................................................ 71



 

14.

 

JAVASCRIPT – Events............................................................................................................................... 74

 

What is an Event? .......................................................................................................................................... 74



 

onclick Event Type ......................................................................................................................................... 74

 

onsubmit Event Type ..................................................................................................................................... 75



 

onmouseover and onmouseout .................................................................................................................... 76

 

HTML 5 Standard Events ............................................................................................................................... 77



 

15.

 

JAVASCRIPT – Cookies ............................................................................................................................. 82

 

What are Cookies?......................................................................................................................................... 82



 

How It Works? ............................................................................................................................................... 82

 

Storing Cookies .............................................................................................................................................. 83



 

Reading Cookies ............................................................................................................................................ 84

 

Setting Cookies Expiry Date ........................................................................................................................... 86



 

Deleting a Cookie ........................................................................................................................................... 87

 



Yüklə 0,99 Mb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə