Tuesday, July 8, 2014

Hello Post 7

My previous post had a static class. Lets see if we can use that class in this post.
The button below has 2 different behaviours:

  1. If my previous post (referred to as 'Post7') is visible the Post7.sayHello() function will be called and the message counter will be updated.
  2. If only this post is shown, then an alert message is shown and no message counter is incremented(since it does not exist).


The code:

No comments:

Post a Comment