This is another one of my small JavaScrpt test posts. Since I am a novice in JavaScript and HTML this may not be that interseting for others.
This post is a small variation of my earlier Hello world post.
This post uses an object literal that contains a single method. The method is called from two buttons, one directly and one indirectly using a onClick function.
The object and all globals (variable names, functions HTML element IDs) have a number appende to them to avoid naming clashes with my other posts.
See also:
http://en.wikipedia.org/wiki/Object_literal
http://en.wikipedia.org/wiki/Hello,_world
The code:
No comments:
Post a Comment