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:
- If my previous post (referred to as 'Post7') is visible the Post7.sayHello() function will be called and the message counter will be updated.
- 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