Homework Class 2

Put it all together

  • Modify your existing three functions to add new elements to the screen instead of fire an alert
  • Keep in mind how to find an element, how to append an element, and how to change the inner html of an element
  • There are lots of possible solutions! Be creative!

The three functions we worked on are:

Try to finish implementing the first function. Don’t worry about the “favorite things” or “Friends” functions if you run out of time

An example of how the page would function is below:

Open the page. Three links will be present

Screen Shot 2013-11-12 at 6.55.55 PM

Click the first link… something like this appears:

Screen Shot 2013-11-12 at 6.55.59 PM

Click the second link… something like this appears

Screen Shot 2013-11-12 at 6.56.04 PM

Click the third link… something like this appears

Screen Shot 2013-11-12 at 6.56.09 PM