• Home Page
  • BFH courses
  • Other courses
  • BFH Courses
  • CS Basics (MedInf)
  • Web Security
  • Operating Systems

Examples: JavaScript

Download all these examples in one file: javascript.zip

Execute some scripts

  • Include JavaScript inside an HTML file (Source)
  • Include a JavaScript file inside HTML uses a function (HTML Source and JavaScript Source)
  • Test some event handlers (Sourceand JavaScript Source)
  • Test other event handlers (Sourceand JavaScript Source)

Modify the DOM (Document Object Model)

  • Manipulate the DOM-tree (Source)
  • Count the children of a node (Source)
  • Append children (Source)

JSON: JavaScript Object Notation

  • Arrays in JavaScript (Source and JavaScript Source)
  • Objects in JavaScript (Source and JavaScript Source)
  • (Sourceand JavaScript Source)

Ajax : Asynchron JavaScript and Xml

  • Ajax for loading data (Source main file, Source get patientand JavaScript Source)
  • The same functionality using only JSON (Source main file, Source get patientand JavaScript Source)

New functionalities for javascript in HTML5

  • Select an element in the DOM (html4) (source)
  • Select an element in the DOM (html5) (source)

Related Pages

  • Home
  • Slides
  • Exemples
  • Exercices
  • Resources

Contact

Prof. Dr. Emmanuel Benoist
Berner Fachhochschule - TI
Quellgasse 21
CH-2501 Biel/Bienne
Switzerland
Mail: emmanuel.benoist (at) bfh.ch

Social Networks

Follow me on
Linkedin, Scholar & Research gate

http://www.ti.bfh.ch/

BACK TO TOP © 2014-2021 Emmanuel Benoist