JavaScript is a scripting language most often used for client-side web development. JavaScript is a scripting language most often used for client-side web development



Yüklə 358 Kb.
tarix07.11.2018
ölçüsü358 Kb.
#78691



JavaScript is a scripting language most often used for client-side web development.

  • JavaScript is a scripting language most often used for client-side web development.

  • JavaScript is an implementation of the ECMAScript standard.

    • The ECMAScript only defines the syntax/characteristics of the language and a basic set of commonly used objects such as Number, Date, Regular Expression, etc.
  • The JavaScript supported in the browsers typically support additional objects.

    • e.g., Window, Frame, Form, DOM object, etc.


Different brands or/and different versions of browsers may support different implementation of JavaScript.

  • Different brands or/and different versions of browsers may support different implementation of JavaScript.

    • They are not fully compatible
  • JScript is the Microsoft version of JavaScript.



To create interactive user interface in a web page (e.g., menu, pop-up alert, windows, etc.)

  • To create interactive user interface in a web page (e.g., menu, pop-up alert, windows, etc.)

  • Manipulating web content dynamically

    • Change the content and style of an element
    • Replace images on a page without page reload
    • Hide/Show contents
  • Generate HTML contents on the fly

  • Form validation

  • AJAX (e.g. Google complete)

  • etc.



JavaScript Tutorials

  • JavaScript Tutorials

    • http://www.w3schools.com/
    • Some examples from W3Schools
      • JavaScript Examples
      • JavaScript Object Examples
      • JavaScript HTML DOM Examples
  • JavaScript DHTML GUI Components

    • http://www.java2s.com/Code/JavaScript/GUI-Components/CatalogGUI-Components.htm
  • EditGrid

    • http://www.editgrid.com/


  • First JavaScript Page

  • First JavaScript Page



  • Use the src attribute to include JavaScript codes from an external file.

    • Use the src attribute to include JavaScript codes from an external file.

    • The included code is inserted in place.



    The scripts inside an HTML document is interpreted in the order they appear in the document.

    • The scripts inside an HTML document is interpreted in the order they appear in the document.

      • Scripts in a function is interpreted when the function is called.
    • So where you place the


      Yüklə 358 Kb.

      Dostları ilə paylaş:





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

    Ana səhifə