Recent Changes - Search:

Language

2009/2010

(archief) 2008/2009

Meta

edit

Les2

Herhalen voorgaande les, plus stukje dat we nog niet echt behandeld hadden;

Theorie praktisch

  • meer loops
    • for ... in ...
    • do ... while ...
  • breaking the loop
    • break
    • continue

Functions

  • declaratie
    • function name() {}
    • function name( argument ) {}
    • return

Praktisch
Problem Set 2.1

Ingebouwde objecten

  • naast 'window' en 'document'
    • String
    • Number
    • Math
    • Date
    • Arrays
  • properties & methods
  • using a for-in loop to explore objects

Praktisch
Problem Set 2.2


(niet meer aan toegekomen):

DOM

  • DOM: Document Object Model
    • getElementById
    • getElementsByTagName
  • Node-hopping
    • .firstChild, .lastChild, .childNodes[0], .nextSibling
  • Changing document text
    • element.firstChild.nodeValue = 'new text'

Events

  • Events
    • .onchange .onclick .ondblclick
    • .onmouseup .onmousedown .onmouseover .onmouseout .onmousemove
    • (addEventListener & removeEventListener)
  • setAttribute
    • element.style.background
    • .visibility & .display
Edit - History - Print - Recent Changes - Search
Page last modified on March 17, 2009, at 12:45 PM