2014年9月4日木曜日

開発環境

Head First JavaScript Programming (Eric T. Freeman (著)、 Elisabeth Robson (著)、 O'Reilly Media )のChapter 9(Handling events: Asynchronous Coding)、BE THE BROWSER(p.392)を解いてみる。

BE THE BROWSER(p.392)

  • Assign init(event handler) to the window's onload property.
  • init is called, grabbing a reference to the image element(id is zero) and assining it to the image variable, assignining showAnswer(event handler ) to the image's onclick property.
  • Grabbing a reference to the image element(id is zero) and assining it to the image variable, assining 'zero.jpg' to the image's src property.

0 コメント:

コメントを投稿