Page 2 - JavaScript
P. 2

Table of Contents


        About                                                                                                  1

        Chapter 1: Getting started with JavaScript                                                             2

          Remarks                                                                                              2

          Versions                                                                                             2

          Examples                                                                                             3


            Using the DOM API                                                                                  3
            Using console.log()                                                                                4

        Introduction                                                                                           4

        Getting Started                                                                                        4


        Logging variables                                                                                      5

        Placeholders                                                                                           5

        Logging Objects                                                                                        6


        Logging HTML elements                                                                                  6

        End Note                                                                                               7

          Using window.alert()                                                                                 7

        Notes                                                                                                  7

          Using window.prompt()                                                                                8

          Syntax                                                                                               8

          Examples                                                                                             8


        Notes                                                                                                  9

          Using the DOM API (with graphical text: Canvas, SVG, or image file)                                  9

          Using window.confirm()                                                                              10

        Notes                                                                                                11

        Chapter 2: .postMessage() and MessageEvent                                                           12

          Syntax                                                                                              12

          Parameters                                                                                          12


          Examples                                                                                            12
            Getting Started                                                                                   12


        What is .postMessage(), when and why do we use it                                                    12
   1   2   3   4   5   6   7