Week 4: javascript exercise (Lu & Syed) Ellen

For this assignment, I decide to use three “button” onclick function.

Here is the link: http://imanas.shanghai.nyu.edu/~xy812/week4/javapr

Here are the changes I make to the code:

I put a “Click me!” button. When the user clicks on the button, an alert will appear.

I put a “Switch out!” button. When the user clicks on the button, the color of the title will change to yellow.

I put a “Bored?” button. When the user clicks on the button, the script of the words in the “navigation” category will become “Times New Roman”.

Leave a Reply